//===----------------------------------------------------------------------===//
//
// This source file is part of the Soto for AWS open source project
//
// Copyright (c) 2017-2024 the Soto project authors
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of Soto project authors
//
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//

// THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator.
// DO NOT EDIT.

#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif
@_spi(SotoInternal) import SotoCore

extension MediaConvert {
    // MARK: Enums

    public enum AacAudioDescriptionBroadcasterMix: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case broadcasterMixedAd = "BROADCASTER_MIXED_AD"
        case normal = "NORMAL"
        public var description: String { return self.rawValue }
    }

    public enum AacCodecProfile: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case hev1 = "HEV1"
        case hev2 = "HEV2"
        case lc = "LC"
        case xhe = "XHE"
        public var description: String { return self.rawValue }
    }

    public enum AacCodingMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case adReceiverMix = "AD_RECEIVER_MIX"
        case codingMode10 = "CODING_MODE_1_0"
        case codingMode11 = "CODING_MODE_1_1"
        case codingMode20 = "CODING_MODE_2_0"
        case codingMode51 = "CODING_MODE_5_1"
        public var description: String { return self.rawValue }
    }

    public enum AacLoudnessMeasurementMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case anchor = "ANCHOR"
        case program = "PROGRAM"
        public var description: String { return self.rawValue }
    }

    public enum AacRateControlMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case cbr = "CBR"
        case vbr = "VBR"
        public var description: String { return self.rawValue }
    }

    public enum AacRawFormat: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case latmLoas = "LATM_LOAS"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum AacSpecification: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case mpeg2 = "MPEG2"
        case mpeg4 = "MPEG4"
        public var description: String { return self.rawValue }
    }

    public enum AacVbrQuality: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case high = "HIGH"
        case low = "LOW"
        case mediumHigh = "MEDIUM_HIGH"
        case mediumLow = "MEDIUM_LOW"
        public var description: String { return self.rawValue }
    }

    public enum Ac3BitstreamMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case commentary = "COMMENTARY"
        case completeMain = "COMPLETE_MAIN"
        case dialogue = "DIALOGUE"
        case emergency = "EMERGENCY"
        case hearingImpaired = "HEARING_IMPAIRED"
        case musicAndEffects = "MUSIC_AND_EFFECTS"
        case visuallyImpaired = "VISUALLY_IMPAIRED"
        case voiceOver = "VOICE_OVER"
        public var description: String { return self.rawValue }
    }

    public enum Ac3CodingMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case codingMode10 = "CODING_MODE_1_0"
        case codingMode11 = "CODING_MODE_1_1"
        case codingMode20 = "CODING_MODE_2_0"
        case codingMode32Lfe = "CODING_MODE_3_2_LFE"
        public var description: String { return self.rawValue }
    }

    public enum Ac3DynamicRangeCompressionLine: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case filmLight = "FILM_LIGHT"
        case filmStandard = "FILM_STANDARD"
        case musicLight = "MUSIC_LIGHT"
        case musicStandard = "MUSIC_STANDARD"
        case none = "NONE"
        case speech = "SPEECH"
        public var description: String { return self.rawValue }
    }

    public enum Ac3DynamicRangeCompressionProfile: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case filmStandard = "FILM_STANDARD"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum Ac3DynamicRangeCompressionRf: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case filmLight = "FILM_LIGHT"
        case filmStandard = "FILM_STANDARD"
        case musicLight = "MUSIC_LIGHT"
        case musicStandard = "MUSIC_STANDARD"
        case none = "NONE"
        case speech = "SPEECH"
        public var description: String { return self.rawValue }
    }

    public enum Ac3LfeFilter: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum Ac3MetadataControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case followInput = "FOLLOW_INPUT"
        case useConfigured = "USE_CONFIGURED"
        public var description: String { return self.rawValue }
    }

    public enum AccelerationMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        case preferred = "PREFERRED"
        public var description: String { return self.rawValue }
    }

    public enum AccelerationStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case accelerated = "ACCELERATED"
        case inProgress = "IN_PROGRESS"
        case notAccelerated = "NOT_ACCELERATED"
        case notApplicable = "NOT_APPLICABLE"
        public var description: String { return self.rawValue }
    }

    public enum AdvancedInputFilter: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum AdvancedInputFilterAddTexture: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum AdvancedInputFilterSharpen: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case high = "HIGH"
        case low = "LOW"
        case off = "OFF"
        public var description: String { return self.rawValue }
    }

    public enum AfdSignaling: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case fixed = "FIXED"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum AlphaBehavior: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case discard = "DISCARD"
        case remapToLuma = "REMAP_TO_LUMA"
        public var description: String { return self.rawValue }
    }

    public enum AncillaryConvert608To708: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case upconvert = "UPCONVERT"
        public var description: String { return self.rawValue }
    }

    public enum AncillaryTerminateCaptions: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case endOfInput = "END_OF_INPUT"
        public var description: String { return self.rawValue }
    }

    public enum AntiAlias: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum AudioChannelTag: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case c = "C"
        case cs = "CS"
        case hi = "HI"
        case l = "L"
        case lc = "LC"
        case lfe = "LFE"
        case lfe2 = "LFE2"
        case ls = "LS"
        case lsd = "LSD"
        case lt = "LT"
        case lw = "LW"
        case m = "M"
        case nar = "NAR"
        case r = "R"
        case rc = "RC"
        case rs = "RS"
        case rsd = "RSD"
        case rsl = "RSL"
        case rsr = "RSR"
        case rt = "RT"
        case rw = "RW"
        case tbc = "TBC"
        case tbl = "TBL"
        case tbr = "TBR"
        case tcs = "TCS"
        case vhc = "VHC"
        case vhl = "VHL"
        case vhr = "VHR"
        public var description: String { return self.rawValue }
    }

    public enum AudioCodec: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case aac = "AAC"
        case ac3 = "AC3"
        case aiff = "AIFF"
        case eac3 = "EAC3"
        case eac3Atmos = "EAC3_ATMOS"
        case flac = "FLAC"
        case mp2 = "MP2"
        case mp3 = "MP3"
        case opus = "OPUS"
        case passthrough = "PASSTHROUGH"
        case vorbis = "VORBIS"
        case wav = "WAV"
        public var description: String { return self.rawValue }
    }

    public enum AudioDefaultSelection: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case `default` = "DEFAULT"
        case notDefault = "NOT_DEFAULT"
        public var description: String { return self.rawValue }
    }

    public enum AudioDurationCorrection: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case disabled = "DISABLED"
        case force = "FORCE"
        case frame = "FRAME"
        case track = "TRACK"
        public var description: String { return self.rawValue }
    }

    public enum AudioLanguageCodeControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case followInput = "FOLLOW_INPUT"
        case useConfigured = "USE_CONFIGURED"
        public var description: String { return self.rawValue }
    }

    public enum AudioNormalizationAlgorithm: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case ituBs17701 = "ITU_BS_1770_1"
        case ituBs17702 = "ITU_BS_1770_2"
        case ituBs17703 = "ITU_BS_1770_3"
        case ituBs17704 = "ITU_BS_1770_4"
        public var description: String { return self.rawValue }
    }

    public enum AudioNormalizationAlgorithmControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case correctAudio = "CORRECT_AUDIO"
        case measureOnly = "MEASURE_ONLY"
        public var description: String { return self.rawValue }
    }

    public enum AudioNormalizationLoudnessLogging: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case dontLog = "DONT_LOG"
        case log = "LOG"
        public var description: String { return self.rawValue }
    }

    public enum AudioNormalizationPeakCalculation: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case none = "NONE"
        case truePeak = "TRUE_PEAK"
        public var description: String { return self.rawValue }
    }

    public enum AudioSelectorType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case allPcm = "ALL_PCM"
        case hlsRenditionGroup = "HLS_RENDITION_GROUP"
        case languageCode = "LANGUAGE_CODE"
        case pid = "PID"
        case track = "TRACK"
        public var description: String { return self.rawValue }
    }

    public enum AudioTypeControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case followInput = "FOLLOW_INPUT"
        case useConfigured = "USE_CONFIGURED"
        public var description: String { return self.rawValue }
    }

    public enum Av1AdaptiveQuantization: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case high = "HIGH"
        case higher = "HIGHER"
        case low = "LOW"
        case max = "MAX"
        case medium = "MEDIUM"
        case off = "OFF"
        public var description: String { return self.rawValue }
    }

    public enum Av1BitDepth: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case bit10 = "BIT_10"
        case bit8 = "BIT_8"
        public var description: String { return self.rawValue }
    }

    public enum Av1FilmGrainSynthesis: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum Av1FramerateControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum Av1FramerateConversionAlgorithm: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case duplicateDrop = "DUPLICATE_DROP"
        case frameformer = "FRAMEFORMER"
        case interpolate = "INTERPOLATE"
        case maintainFrameCount = "MAINTAIN_FRAME_COUNT"
        public var description: String { return self.rawValue }
    }

    public enum Av1RateControlMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case qvbr = "QVBR"
        public var description: String { return self.rawValue }
    }

    public enum Av1SpatialAdaptiveQuantization: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum AvcIntraClass: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case class100 = "CLASS_100"
        case class200 = "CLASS_200"
        case class4K2K = "CLASS_4K_2K"
        case class50 = "CLASS_50"
        public var description: String { return self.rawValue }
    }

    public enum AvcIntraFramerateControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum AvcIntraFramerateConversionAlgorithm: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case duplicateDrop = "DUPLICATE_DROP"
        case frameformer = "FRAMEFORMER"
        case interpolate = "INTERPOLATE"
        case maintainFrameCount = "MAINTAIN_FRAME_COUNT"
        public var description: String { return self.rawValue }
    }

    public enum AvcIntraInterlaceMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case bottomField = "BOTTOM_FIELD"
        case followBottomField = "FOLLOW_BOTTOM_FIELD"
        case followTopField = "FOLLOW_TOP_FIELD"
        case progressive = "PROGRESSIVE"
        case topField = "TOP_FIELD"
        public var description: String { return self.rawValue }
    }

    public enum AvcIntraScanTypeConversionMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case interlaced = "INTERLACED"
        case interlacedOptimize = "INTERLACED_OPTIMIZE"
        public var description: String { return self.rawValue }
    }

    public enum AvcIntraSlowPal: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum AvcIntraTelecine: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case hard = "HARD"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum AvcIntraUhdQualityTuningLevel: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case multiPass = "MULTI_PASS"
        case singlePass = "SINGLE_PASS"
        public var description: String { return self.rawValue }
    }

    public enum BandwidthReductionFilterSharpening: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case high = "HIGH"
        case low = "LOW"
        case medium = "MEDIUM"
        case off = "OFF"
        public var description: String { return self.rawValue }
    }

    public enum BandwidthReductionFilterStrength: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case high = "HIGH"
        case low = "LOW"
        case medium = "MEDIUM"
        case off = "OFF"
        public var description: String { return self.rawValue }
    }

    public enum BillingTagsSource: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case job = "JOB"
        case jobTemplate = "JOB_TEMPLATE"
        case preset = "PRESET"
        case queue = "QUEUE"
        public var description: String { return self.rawValue }
    }

    public enum BurnInSubtitleStylePassthrough: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum BurninSubtitleAlignment: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case centered = "CENTERED"
        case left = "LEFT"
        public var description: String { return self.rawValue }
    }

    public enum BurninSubtitleApplyFontColor: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case allText = "ALL_TEXT"
        case whiteTextOnly = "WHITE_TEXT_ONLY"
        public var description: String { return self.rawValue }
    }

    public enum BurninSubtitleBackgroundColor: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case black = "BLACK"
        case none = "NONE"
        case white = "WHITE"
        public var description: String { return self.rawValue }
    }

    public enum BurninSubtitleFallbackFont: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case bestMatch = "BEST_MATCH"
        case monospacedSansserif = "MONOSPACED_SANSSERIF"
        case monospacedSerif = "MONOSPACED_SERIF"
        case proportionalSansserif = "PROPORTIONAL_SANSSERIF"
        case proportionalSerif = "PROPORTIONAL_SERIF"
        public var description: String { return self.rawValue }
    }

    public enum BurninSubtitleFontColor: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case black = "BLACK"
        case blue = "BLUE"
        case green = "GREEN"
        case hex = "HEX"
        case red = "RED"
        case white = "WHITE"
        case yellow = "YELLOW"
        public var description: String { return self.rawValue }
    }

    public enum BurninSubtitleOutlineColor: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case black = "BLACK"
        case blue = "BLUE"
        case green = "GREEN"
        case red = "RED"
        case white = "WHITE"
        case yellow = "YELLOW"
        public var description: String { return self.rawValue }
    }

    public enum BurninSubtitleShadowColor: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case black = "BLACK"
        case none = "NONE"
        case white = "WHITE"
        public var description: String { return self.rawValue }
    }

    public enum BurninSubtitleTeletextSpacing: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case fixedGrid = "FIXED_GRID"
        case proportional = "PROPORTIONAL"
        public var description: String { return self.rawValue }
    }

    public enum CaptionDestinationType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case burnIn = "BURN_IN"
        case dvbSub = "DVB_SUB"
        case embedded = "EMBEDDED"
        case embeddedPlusScte20 = "EMBEDDED_PLUS_SCTE20"
        case imsc = "IMSC"
        case scc = "SCC"
        case scte20PlusEmbedded = "SCTE20_PLUS_EMBEDDED"
        case smi = "SMI"
        case srt = "SRT"
        case teletext = "TELETEXT"
        case ttml = "TTML"
        case webvtt = "WEBVTT"
        public var description: String { return self.rawValue }
    }

    public enum CaptionSourceByteRateLimit: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum CaptionSourceConvertPaintOnToPopOn: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum CaptionSourceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case ancillary = "ANCILLARY"
        case dvbSub = "DVB_SUB"
        case embedded = "EMBEDDED"
        case imsc = "IMSC"
        case nullSource = "NULL_SOURCE"
        case scc = "SCC"
        case scte20 = "SCTE20"
        case smi = "SMI"
        case smpteTt = "SMPTE_TT"
        case srt = "SRT"
        case stl = "STL"
        case teletext = "TELETEXT"
        case ttml = "TTML"
        case webvtt = "WEBVTT"
        public var description: String { return self.rawValue }
    }

    public enum CaptionSourceUpconvertSTLToTeletext: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case upconvert = "UPCONVERT"
        public var description: String { return self.rawValue }
    }

    public enum ChromaPositionMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case forceCenter = "FORCE_CENTER"
        case forceTopLeft = "FORCE_TOP_LEFT"
        public var description: String { return self.rawValue }
    }

    public enum CmafClientCache: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum CmafCodecSpecification: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case rfc4281 = "RFC_4281"
        case rfc6381 = "RFC_6381"
        public var description: String { return self.rawValue }
    }

    public enum CmafEncryptionType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case aesCtr = "AES_CTR"
        case sampleAes = "SAMPLE_AES"
        public var description: String { return self.rawValue }
    }

    public enum CmafImageBasedTrickPlay: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case advanced = "ADVANCED"
        case none = "NONE"
        case thumbnail = "THUMBNAIL"
        case thumbnailAndFullframe = "THUMBNAIL_AND_FULLFRAME"
        public var description: String { return self.rawValue }
    }

    public enum CmafInitializationVectorInManifest: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case exclude = "EXCLUDE"
        case include = "INCLUDE"
        public var description: String { return self.rawValue }
    }

    public enum CmafIntervalCadence: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case followCustom = "FOLLOW_CUSTOM"
        case followIframe = "FOLLOW_IFRAME"
        public var description: String { return self.rawValue }
    }

    public enum CmafKeyProviderType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case speke = "SPEKE"
        case staticKey = "STATIC_KEY"
        public var description: String { return self.rawValue }
    }

    public enum CmafManifestCompression: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case gzip = "GZIP"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum CmafManifestDurationFormat: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case floatingPoint = "FLOATING_POINT"
        case integer = "INTEGER"
        public var description: String { return self.rawValue }
    }

    public enum CmafMpdManifestBandwidthType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case average = "AVERAGE"
        case max = "MAX"
        public var description: String { return self.rawValue }
    }

    public enum CmafMpdProfile: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case mainProfile = "MAIN_PROFILE"
        case onDemandProfile = "ON_DEMAND_PROFILE"
        public var description: String { return self.rawValue }
    }

    public enum CmafPtsOffsetHandlingForBFrames: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case matchInitialPts = "MATCH_INITIAL_PTS"
        case zeroBased = "ZERO_BASED"
        public var description: String { return self.rawValue }
    }

    public enum CmafSegmentControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case segmentedFiles = "SEGMENTED_FILES"
        case singleFile = "SINGLE_FILE"
        public var description: String { return self.rawValue }
    }

    public enum CmafSegmentLengthControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case exact = "EXACT"
        case gopMultiple = "GOP_MULTIPLE"
        case match = "MATCH"
        public var description: String { return self.rawValue }
    }

    public enum CmafStreamInfResolution: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case exclude = "EXCLUDE"
        case include = "INCLUDE"
        public var description: String { return self.rawValue }
    }

    public enum CmafTargetDurationCompatibilityMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case legacy = "LEGACY"
        case specCompliant = "SPEC_COMPLIANT"
        public var description: String { return self.rawValue }
    }

    public enum CmafVideoCompositionOffsets: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case signed = "SIGNED"
        case unsigned = "UNSIGNED"
        public var description: String { return self.rawValue }
    }

    public enum CmafWriteDASHManifest: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum CmafWriteHLSManifest: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum CmafWriteSegmentTimelineInRepresentation: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum CmfcAudioDuration: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case defaultCodecDuration = "DEFAULT_CODEC_DURATION"
        case matchVideoDuration = "MATCH_VIDEO_DURATION"
        public var description: String { return self.rawValue }
    }

    public enum CmfcAudioTrackType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case alternateAudioAutoSelect = "ALTERNATE_AUDIO_AUTO_SELECT"
        case alternateAudioAutoSelectDefault = "ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT"
        case alternateAudioNotAutoSelect = "ALTERNATE_AUDIO_NOT_AUTO_SELECT"
        case audioOnlyVariantStream = "AUDIO_ONLY_VARIANT_STREAM"
        public var description: String { return self.rawValue }
    }

    public enum CmfcDescriptiveVideoServiceFlag: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case dontFlag = "DONT_FLAG"
        case flag = "FLAG"
        public var description: String { return self.rawValue }
    }

    public enum CmfcIFrameOnlyManifest: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case exclude = "EXCLUDE"
        case include = "INCLUDE"
        public var description: String { return self.rawValue }
    }

    public enum CmfcKlvMetadata: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case none = "NONE"
        case passthrough = "PASSTHROUGH"
        public var description: String { return self.rawValue }
    }

    public enum CmfcManifestMetadataSignaling: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum CmfcScte35Esam: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case insert = "INSERT"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum CmfcScte35Source: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case none = "NONE"
        case passthrough = "PASSTHROUGH"
        public var description: String { return self.rawValue }
    }

    public enum CmfcTimedMetadata: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case none = "NONE"
        case passthrough = "PASSTHROUGH"
        public var description: String { return self.rawValue }
    }

    public enum CmfcTimedMetadataBoxVersion: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case version0 = "VERSION_0"
        case version1 = "VERSION_1"
        public var description: String { return self.rawValue }
    }

    public enum Codec: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case aac = "AAC"
        case ac3 = "AC3"
        case av1 = "AV1"
        case avc = "AVC"
        case c608 = "C608"
        case c708 = "C708"
        case eac3 = "EAC3"
        case flac = "FLAC"
        case hevc = "HEVC"
        case jpeg2000 = "JPEG2000"
        case mjpeg = "MJPEG"
        case mp3 = "MP3"
        case mp4v = "MP4V"
        case mpeg2 = "MPEG2"
        case opus = "OPUS"
        case pcm = "PCM"
        case prores = "PRORES"
        case theora = "THEORA"
        case unknown = "UNKNOWN"
        case vorbis = "VORBIS"
        case vp8 = "VP8"
        case vp9 = "VP9"
        case webvtt = "WEBVTT"
        public var description: String { return self.rawValue }
    }

    public enum ColorMetadata: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case ignore = "IGNORE"
        case insert = "INSERT"
        public var description: String { return self.rawValue }
    }

    public enum ColorPrimaries: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case ebu3213E = "EBU_3213_E"
        case genericFilm = "GENERIC_FILM"
        case ipt = "IPT"
        case itu2020 = "ITU_2020"
        case itu470Bg = "ITU_470BG"
        case itu470M = "ITU_470M"
        case itu709 = "ITU_709"
        case last = "LAST"
        case reserved = "RESERVED"
        case smpte170M = "SMPTE_170M"
        case smpte2067Xyz = "SMPTE_2067XYZ"
        case smpte240M = "SMPTE_240M"
        case smpte4281 = "SMPTE_428_1"
        case smpte4312 = "SMPTE_431_2"
        case smpteEg4321 = "SMPTE_EG_432_1"
        case unspecified = "UNSPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum ColorSpace: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case follow = "FOLLOW"
        case hdr10 = "HDR10"
        case hlg2020 = "HLG_2020"
        case p3d65Hdr = "P3D65_HDR"
        case p3d65Sdr = "P3D65_SDR"
        case p3dci = "P3DCI"
        case rec601 = "REC_601"
        case rec709 = "REC_709"
        public var description: String { return self.rawValue }
    }

    public enum ColorSpaceConversion: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case force601 = "FORCE_601"
        case force709 = "FORCE_709"
        case forceHdr10 = "FORCE_HDR10"
        case forceHlg2020 = "FORCE_HLG_2020"
        case forceP3D65Hdr = "FORCE_P3D65_HDR"
        case forceP3D65Sdr = "FORCE_P3D65_SDR"
        case forceP3Dci = "FORCE_P3DCI"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum ColorSpaceUsage: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case fallback = "FALLBACK"
        case force = "FORCE"
        public var description: String { return self.rawValue }
    }

    public enum Commitment: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case oneYear = "ONE_YEAR"
        public var description: String { return self.rawValue }
    }

    public enum ContainerType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case cmfc = "CMFC"
        case f4v = "F4V"
        case gif = "GIF"
        case ismv = "ISMV"
        case m2ts = "M2TS"
        case m3u8 = "M3U8"
        case mov = "MOV"
        case mp4 = "MP4"
        case mpd = "MPD"
        case mxf = "MXF"
        case ogg = "OGG"
        case raw = "RAW"
        case webm = "WEBM"
        case y4m = "Y4M"
        public var description: String { return self.rawValue }
    }

    public enum CopyProtectionAction: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case passthrough = "PASSTHROUGH"
        case strip = "STRIP"
        public var description: String { return self.rawValue }
    }

    public enum DashIsoGroupAudioChannelConfigSchemeIdUri: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case dolbyChannelConfiguration = "DOLBY_CHANNEL_CONFIGURATION"
        case mpegChannelConfiguration = "MPEG_CHANNEL_CONFIGURATION"
        public var description: String { return self.rawValue }
    }

    public enum DashIsoHbbtvCompliance: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case hbbtv15 = "HBBTV_1_5"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum DashIsoImageBasedTrickPlay: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case advanced = "ADVANCED"
        case none = "NONE"
        case thumbnail = "THUMBNAIL"
        case thumbnailAndFullframe = "THUMBNAIL_AND_FULLFRAME"
        public var description: String { return self.rawValue }
    }

    public enum DashIsoIntervalCadence: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case followCustom = "FOLLOW_CUSTOM"
        case followIframe = "FOLLOW_IFRAME"
        public var description: String { return self.rawValue }
    }

    public enum DashIsoMpdManifestBandwidthType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case average = "AVERAGE"
        case max = "MAX"
        public var description: String { return self.rawValue }
    }

    public enum DashIsoMpdProfile: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case mainProfile = "MAIN_PROFILE"
        case onDemandProfile = "ON_DEMAND_PROFILE"
        public var description: String { return self.rawValue }
    }

    public enum DashIsoPlaybackDeviceCompatibility: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case cencV1 = "CENC_V1"
        case unencryptedSei = "UNENCRYPTED_SEI"
        public var description: String { return self.rawValue }
    }

    public enum DashIsoPtsOffsetHandlingForBFrames: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case matchInitialPts = "MATCH_INITIAL_PTS"
        case zeroBased = "ZERO_BASED"
        public var description: String { return self.rawValue }
    }

    public enum DashIsoSegmentControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case segmentedFiles = "SEGMENTED_FILES"
        case singleFile = "SINGLE_FILE"
        public var description: String { return self.rawValue }
    }

    public enum DashIsoSegmentLengthControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case exact = "EXACT"
        case gopMultiple = "GOP_MULTIPLE"
        case match = "MATCH"
        public var description: String { return self.rawValue }
    }

    public enum DashIsoVideoCompositionOffsets: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case signed = "SIGNED"
        case unsigned = "UNSIGNED"
        public var description: String { return self.rawValue }
    }

    public enum DashIsoWriteSegmentTimelineInRepresentation: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum DashManifestStyle: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case basic = "BASIC"
        case compact = "COMPACT"
        case distinct = "DISTINCT"
        public var description: String { return self.rawValue }
    }

    public enum DecryptionMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case aesCbc = "AES_CBC"
        case aesCtr = "AES_CTR"
        case aesGcm = "AES_GCM"
        public var description: String { return self.rawValue }
    }

    public enum DeinterlaceAlgorithm: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case blend = "BLEND"
        case blendTicker = "BLEND_TICKER"
        case interpolate = "INTERPOLATE"
        case interpolateTicker = "INTERPOLATE_TICKER"
        case linearInterpolation = "LINEAR_INTERPOLATION"
        public var description: String { return self.rawValue }
    }

    public enum DeinterlacerControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case forceAllFrames = "FORCE_ALL_FRAMES"
        case normal = "NORMAL"
        public var description: String { return self.rawValue }
    }

    public enum DeinterlacerMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case adaptive = "ADAPTIVE"
        case deinterlace = "DEINTERLACE"
        case inverseTelecine = "INVERSE_TELECINE"
        public var description: String { return self.rawValue }
    }

    public enum DescribeEndpointsMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case `default` = "DEFAULT"
        case getOnly = "GET_ONLY"
        public var description: String { return self.rawValue }
    }

    public enum DolbyVisionLevel6Mode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case passthrough = "PASSTHROUGH"
        case recalculate = "RECALCULATE"
        case specify = "SPECIFY"
        public var description: String { return self.rawValue }
    }

    public enum DolbyVisionMapping: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case hdr101000 = "HDR10_1000"
        case hdr10Nomap = "HDR10_NOMAP"
        public var description: String { return self.rawValue }
    }

    public enum DolbyVisionProfile: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case profile5 = "PROFILE_5"
        case profile81 = "PROFILE_8_1"
        public var description: String { return self.rawValue }
    }

    public enum DropFrameTimecode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum DvbSubSubtitleFallbackFont: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case bestMatch = "BEST_MATCH"
        case monospacedSansserif = "MONOSPACED_SANSSERIF"
        case monospacedSerif = "MONOSPACED_SERIF"
        case proportionalSansserif = "PROPORTIONAL_SANSSERIF"
        case proportionalSerif = "PROPORTIONAL_SERIF"
        public var description: String { return self.rawValue }
    }

    public enum DvbSubtitleAlignment: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case centered = "CENTERED"
        case left = "LEFT"
        public var description: String { return self.rawValue }
    }

    public enum DvbSubtitleApplyFontColor: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case allText = "ALL_TEXT"
        case whiteTextOnly = "WHITE_TEXT_ONLY"
        public var description: String { return self.rawValue }
    }

    public enum DvbSubtitleBackgroundColor: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case black = "BLACK"
        case none = "NONE"
        case white = "WHITE"
        public var description: String { return self.rawValue }
    }

    public enum DvbSubtitleFontColor: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case black = "BLACK"
        case blue = "BLUE"
        case green = "GREEN"
        case hex = "HEX"
        case red = "RED"
        case white = "WHITE"
        case yellow = "YELLOW"
        public var description: String { return self.rawValue }
    }

    public enum DvbSubtitleOutlineColor: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case black = "BLACK"
        case blue = "BLUE"
        case green = "GREEN"
        case red = "RED"
        case white = "WHITE"
        case yellow = "YELLOW"
        public var description: String { return self.rawValue }
    }

    public enum DvbSubtitleShadowColor: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case black = "BLACK"
        case none = "NONE"
        case white = "WHITE"
        public var description: String { return self.rawValue }
    }

    public enum DvbSubtitleStylePassthrough: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum DvbSubtitleTeletextSpacing: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case fixedGrid = "FIXED_GRID"
        case proportional = "PROPORTIONAL"
        public var description: String { return self.rawValue }
    }

    public enum DvbSubtitlingType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case hearingImpaired = "HEARING_IMPAIRED"
        case standard = "STANDARD"
        public var description: String { return self.rawValue }
    }

    public enum DvbddsHandling: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case noDisplayWindow = "NO_DISPLAY_WINDOW"
        case none = "NONE"
        case specified = "SPECIFIED"
        case specifiedOptimal = "SPECIFIED_OPTIMAL"
        public var description: String { return self.rawValue }
    }

    public enum DynamicAudioSelectorType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case allTracks = "ALL_TRACKS"
        case languageCode = "LANGUAGE_CODE"
        public var description: String { return self.rawValue }
    }

    public enum Eac3AtmosBitstreamMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case completeMain = "COMPLETE_MAIN"
        public var description: String { return self.rawValue }
    }

    public enum Eac3AtmosCodingMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case codingMode514 = "CODING_MODE_5_1_4"
        case codingMode714 = "CODING_MODE_7_1_4"
        case codingMode916 = "CODING_MODE_9_1_6"
        case codingModeAuto = "CODING_MODE_AUTO"
        public var description: String { return self.rawValue }
    }

    public enum Eac3AtmosDialogueIntelligence: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum Eac3AtmosDownmixControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum Eac3AtmosDynamicRangeCompressionLine: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case filmLight = "FILM_LIGHT"
        case filmStandard = "FILM_STANDARD"
        case musicLight = "MUSIC_LIGHT"
        case musicStandard = "MUSIC_STANDARD"
        case none = "NONE"
        case speech = "SPEECH"
        public var description: String { return self.rawValue }
    }

    public enum Eac3AtmosDynamicRangeCompressionRf: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case filmLight = "FILM_LIGHT"
        case filmStandard = "FILM_STANDARD"
        case musicLight = "MUSIC_LIGHT"
        case musicStandard = "MUSIC_STANDARD"
        case none = "NONE"
        case speech = "SPEECH"
        public var description: String { return self.rawValue }
    }

    public enum Eac3AtmosDynamicRangeControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum Eac3AtmosMeteringMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case ituBs17701 = "ITU_BS_1770_1"
        case ituBs17702 = "ITU_BS_1770_2"
        case ituBs17703 = "ITU_BS_1770_3"
        case ituBs17704 = "ITU_BS_1770_4"
        case leqA = "LEQ_A"
        public var description: String { return self.rawValue }
    }

    public enum Eac3AtmosStereoDownmix: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case dpl2 = "DPL2"
        case notIndicated = "NOT_INDICATED"
        case stereo = "STEREO"
        case surround = "SURROUND"
        public var description: String { return self.rawValue }
    }

    public enum Eac3AtmosSurroundExMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        case notIndicated = "NOT_INDICATED"
        public var description: String { return self.rawValue }
    }

    public enum Eac3AttenuationControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case attenuate3Db = "ATTENUATE_3_DB"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum Eac3BitstreamMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case commentary = "COMMENTARY"
        case completeMain = "COMPLETE_MAIN"
        case emergency = "EMERGENCY"
        case hearingImpaired = "HEARING_IMPAIRED"
        case visuallyImpaired = "VISUALLY_IMPAIRED"
        public var description: String { return self.rawValue }
    }

    public enum Eac3CodingMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case codingMode10 = "CODING_MODE_1_0"
        case codingMode20 = "CODING_MODE_2_0"
        case codingMode32 = "CODING_MODE_3_2"
        public var description: String { return self.rawValue }
    }

    public enum Eac3DcFilter: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum Eac3DynamicRangeCompressionLine: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case filmLight = "FILM_LIGHT"
        case filmStandard = "FILM_STANDARD"
        case musicLight = "MUSIC_LIGHT"
        case musicStandard = "MUSIC_STANDARD"
        case none = "NONE"
        case speech = "SPEECH"
        public var description: String { return self.rawValue }
    }

    public enum Eac3DynamicRangeCompressionRf: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case filmLight = "FILM_LIGHT"
        case filmStandard = "FILM_STANDARD"
        case musicLight = "MUSIC_LIGHT"
        case musicStandard = "MUSIC_STANDARD"
        case none = "NONE"
        case speech = "SPEECH"
        public var description: String { return self.rawValue }
    }

    public enum Eac3LfeControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case lfe = "LFE"
        case noLfe = "NO_LFE"
        public var description: String { return self.rawValue }
    }

    public enum Eac3LfeFilter: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum Eac3MetadataControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case followInput = "FOLLOW_INPUT"
        case useConfigured = "USE_CONFIGURED"
        public var description: String { return self.rawValue }
    }

    public enum Eac3PassthroughControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case noPassthrough = "NO_PASSTHROUGH"
        case whenPossible = "WHEN_POSSIBLE"
        public var description: String { return self.rawValue }
    }

    public enum Eac3PhaseControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case noShift = "NO_SHIFT"
        case shift90Degrees = "SHIFT_90_DEGREES"
        public var description: String { return self.rawValue }
    }

    public enum Eac3StereoDownmix: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case dpl2 = "DPL2"
        case loRo = "LO_RO"
        case ltRt = "LT_RT"
        case notIndicated = "NOT_INDICATED"
        public var description: String { return self.rawValue }
    }

    public enum Eac3SurroundExMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        case notIndicated = "NOT_INDICATED"
        public var description: String { return self.rawValue }
    }

    public enum Eac3SurroundMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        case notIndicated = "NOT_INDICATED"
        public var description: String { return self.rawValue }
    }

    public enum EmbeddedConvert608To708: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case upconvert = "UPCONVERT"
        public var description: String { return self.rawValue }
    }

    public enum EmbeddedTerminateCaptions: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case endOfInput = "END_OF_INPUT"
        public var description: String { return self.rawValue }
    }

    public enum EmbeddedTimecodeOverride: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case none = "NONE"
        case useMdpm = "USE_MDPM"
        public var description: String { return self.rawValue }
    }

    public enum F4vMoovPlacement: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case normal = "NORMAL"
        case progressiveDownload = "PROGRESSIVE_DOWNLOAD"
        public var description: String { return self.rawValue }
    }

    public enum FileSourceConvert608To708: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case upconvert = "UPCONVERT"
        public var description: String { return self.rawValue }
    }

    public enum FileSourceTimeDeltaUnits: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case milliseconds = "MILLISECONDS"
        case seconds = "SECONDS"
        public var description: String { return self.rawValue }
    }

    public enum FontScript: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case automatic = "AUTOMATIC"
        case hans = "HANS"
        case hant = "HANT"
        public var description: String { return self.rawValue }
    }

    public enum Format: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case matroska = "matroska"
        case mp4 = "mp4"
        case mxf = "mxf"
        case quicktime = "quicktime"
        case webm = "webm"
        public var description: String { return self.rawValue }
    }

    public enum FrameMetricType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case msSsim = "MS_SSIM"
        case psnr = "PSNR"
        case psnrHvs = "PSNR_HVS"
        case qvbr = "QVBR"
        case ssim = "SSIM"
        case vmaf = "VMAF"
        public var description: String { return self.rawValue }
    }

    public enum GifFramerateControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum GifFramerateConversionAlgorithm: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case duplicateDrop = "DUPLICATE_DROP"
        case interpolate = "INTERPOLATE"
        public var description: String { return self.rawValue }
    }

    public enum H264AdaptiveQuantization: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case high = "HIGH"
        case higher = "HIGHER"
        case low = "LOW"
        case max = "MAX"
        case medium = "MEDIUM"
        case off = "OFF"
        public var description: String { return self.rawValue }
    }

    public enum H264CodecLevel: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case level1 = "LEVEL_1"
        case level11 = "LEVEL_1_1"
        case level12 = "LEVEL_1_2"
        case level13 = "LEVEL_1_3"
        case level2 = "LEVEL_2"
        case level21 = "LEVEL_2_1"
        case level22 = "LEVEL_2_2"
        case level3 = "LEVEL_3"
        case level31 = "LEVEL_3_1"
        case level32 = "LEVEL_3_2"
        case level4 = "LEVEL_4"
        case level41 = "LEVEL_4_1"
        case level42 = "LEVEL_4_2"
        case level5 = "LEVEL_5"
        case level51 = "LEVEL_5_1"
        case level52 = "LEVEL_5_2"
        public var description: String { return self.rawValue }
    }

    public enum H264CodecProfile: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case baseline = "BASELINE"
        case high = "HIGH"
        case high10Bit = "HIGH_10BIT"
        case high422 = "HIGH_422"
        case high42210Bit = "HIGH_422_10BIT"
        case main = "MAIN"
        public var description: String { return self.rawValue }
    }

    public enum H264DynamicSubGop: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case `static` = "STATIC"
        case adaptive = "ADAPTIVE"
        public var description: String { return self.rawValue }
    }

    public enum H264EndOfStreamMarkers: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case include = "INCLUDE"
        case suppress = "SUPPRESS"
        public var description: String { return self.rawValue }
    }

    public enum H264EntropyEncoding: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case cabac = "CABAC"
        case cavlc = "CAVLC"
        public var description: String { return self.rawValue }
    }

    public enum H264FieldEncoding: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case forceField = "FORCE_FIELD"
        case mbaff = "MBAFF"
        case paff = "PAFF"
        public var description: String { return self.rawValue }
    }

    public enum H264FlickerAdaptiveQuantization: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H264FramerateControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum H264FramerateConversionAlgorithm: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case duplicateDrop = "DUPLICATE_DROP"
        case frameformer = "FRAMEFORMER"
        case interpolate = "INTERPOLATE"
        case maintainFrameCount = "MAINTAIN_FRAME_COUNT"
        public var description: String { return self.rawValue }
    }

    public enum H264GopBReference: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H264GopSizeUnits: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case frames = "FRAMES"
        case seconds = "SECONDS"
        public var description: String { return self.rawValue }
    }

    public enum H264InterlaceMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case bottomField = "BOTTOM_FIELD"
        case followBottomField = "FOLLOW_BOTTOM_FIELD"
        case followTopField = "FOLLOW_TOP_FIELD"
        case progressive = "PROGRESSIVE"
        case topField = "TOP_FIELD"
        public var description: String { return self.rawValue }
    }

    public enum H264ParControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum H264QualityTuningLevel: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case multiPassHq = "MULTI_PASS_HQ"
        case singlePass = "SINGLE_PASS"
        case singlePassHq = "SINGLE_PASS_HQ"
        public var description: String { return self.rawValue }
    }

    public enum H264RateControlMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case cbr = "CBR"
        case qvbr = "QVBR"
        case vbr = "VBR"
        public var description: String { return self.rawValue }
    }

    public enum H264RepeatPps: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H264SaliencyAwareEncoding: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case preferred = "PREFERRED"
        public var description: String { return self.rawValue }
    }

    public enum H264ScanTypeConversionMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case interlaced = "INTERLACED"
        case interlacedOptimize = "INTERLACED_OPTIMIZE"
        public var description: String { return self.rawValue }
    }

    public enum H264SceneChangeDetect: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        case transitionDetection = "TRANSITION_DETECTION"
        public var description: String { return self.rawValue }
    }

    public enum H264SlowPal: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H264SpatialAdaptiveQuantization: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H264Syntax: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case `default` = "DEFAULT"
        case rp2027 = "RP2027"
        public var description: String { return self.rawValue }
    }

    public enum H264Telecine: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case hard = "HARD"
        case none = "NONE"
        case soft = "SOFT"
        public var description: String { return self.rawValue }
    }

    public enum H264TemporalAdaptiveQuantization: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H264UnregisteredSeiTimecode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H264WriteMp4PackagingType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case avc1 = "AVC1"
        case avc3 = "AVC3"
        public var description: String { return self.rawValue }
    }

    public enum H265AdaptiveQuantization: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case high = "HIGH"
        case higher = "HIGHER"
        case low = "LOW"
        case max = "MAX"
        case medium = "MEDIUM"
        case off = "OFF"
        public var description: String { return self.rawValue }
    }

    public enum H265AlternateTransferFunctionSei: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H265CodecLevel: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case level1 = "LEVEL_1"
        case level2 = "LEVEL_2"
        case level21 = "LEVEL_2_1"
        case level3 = "LEVEL_3"
        case level31 = "LEVEL_3_1"
        case level4 = "LEVEL_4"
        case level41 = "LEVEL_4_1"
        case level5 = "LEVEL_5"
        case level51 = "LEVEL_5_1"
        case level52 = "LEVEL_5_2"
        case level6 = "LEVEL_6"
        case level61 = "LEVEL_6_1"
        case level62 = "LEVEL_6_2"
        public var description: String { return self.rawValue }
    }

    public enum H265CodecProfile: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case main10High = "MAIN10_HIGH"
        case main10Main = "MAIN10_MAIN"
        case main42210BitHigh = "MAIN_422_10BIT_HIGH"
        case main42210BitMain = "MAIN_422_10BIT_MAIN"
        case main4228BitHigh = "MAIN_422_8BIT_HIGH"
        case main4228BitMain = "MAIN_422_8BIT_MAIN"
        case mainHigh = "MAIN_HIGH"
        case mainMain = "MAIN_MAIN"
        public var description: String { return self.rawValue }
    }

    public enum H265Deblocking: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H265DynamicSubGop: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case `static` = "STATIC"
        case adaptive = "ADAPTIVE"
        public var description: String { return self.rawValue }
    }

    public enum H265EndOfStreamMarkers: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case include = "INCLUDE"
        case suppress = "SUPPRESS"
        public var description: String { return self.rawValue }
    }

    public enum H265FlickerAdaptiveQuantization: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H265FramerateControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum H265FramerateConversionAlgorithm: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case duplicateDrop = "DUPLICATE_DROP"
        case frameformer = "FRAMEFORMER"
        case interpolate = "INTERPOLATE"
        case maintainFrameCount = "MAINTAIN_FRAME_COUNT"
        public var description: String { return self.rawValue }
    }

    public enum H265GopBReference: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H265GopSizeUnits: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case frames = "FRAMES"
        case seconds = "SECONDS"
        public var description: String { return self.rawValue }
    }

    public enum H265InterlaceMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case bottomField = "BOTTOM_FIELD"
        case followBottomField = "FOLLOW_BOTTOM_FIELD"
        case followTopField = "FOLLOW_TOP_FIELD"
        case progressive = "PROGRESSIVE"
        case topField = "TOP_FIELD"
        public var description: String { return self.rawValue }
    }

    public enum H265ParControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum H265QualityTuningLevel: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case multiPassHq = "MULTI_PASS_HQ"
        case singlePass = "SINGLE_PASS"
        case singlePassHq = "SINGLE_PASS_HQ"
        public var description: String { return self.rawValue }
    }

    public enum H265RateControlMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case cbr = "CBR"
        case qvbr = "QVBR"
        case vbr = "VBR"
        public var description: String { return self.rawValue }
    }

    public enum H265SampleAdaptiveOffsetFilterMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case `default` = "DEFAULT"
        case adaptive = "ADAPTIVE"
        case off = "OFF"
        public var description: String { return self.rawValue }
    }

    public enum H265ScanTypeConversionMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case interlaced = "INTERLACED"
        case interlacedOptimize = "INTERLACED_OPTIMIZE"
        public var description: String { return self.rawValue }
    }

    public enum H265SceneChangeDetect: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        case transitionDetection = "TRANSITION_DETECTION"
        public var description: String { return self.rawValue }
    }

    public enum H265SlowPal: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H265SpatialAdaptiveQuantization: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H265Telecine: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case hard = "HARD"
        case none = "NONE"
        case soft = "SOFT"
        public var description: String { return self.rawValue }
    }

    public enum H265TemporalAdaptiveQuantization: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H265TemporalIds: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H265Tiles: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H265UnregisteredSeiTimecode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum H265WriteMp4PackagingType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case hev1 = "HEV1"
        case hvc1 = "HVC1"
        public var description: String { return self.rawValue }
    }

    public enum HDRToSDRToneMapper: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case preserveDetails = "PRESERVE_DETAILS"
        case vibrant = "VIBRANT"
        public var description: String { return self.rawValue }
    }

    public enum HlsAdMarkers: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case elemental = "ELEMENTAL"
        case elementalScte35 = "ELEMENTAL_SCTE35"
        public var description: String { return self.rawValue }
    }

    public enum HlsAudioOnlyContainer: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case automatic = "AUTOMATIC"
        case m2ts = "M2TS"
        public var description: String { return self.rawValue }
    }

    public enum HlsAudioOnlyHeader: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case exclude = "EXCLUDE"
        case include = "INCLUDE"
        public var description: String { return self.rawValue }
    }

    public enum HlsAudioTrackType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case alternateAudioAutoSelect = "ALTERNATE_AUDIO_AUTO_SELECT"
        case alternateAudioAutoSelectDefault = "ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT"
        case alternateAudioNotAutoSelect = "ALTERNATE_AUDIO_NOT_AUTO_SELECT"
        case audioOnlyVariantStream = "AUDIO_ONLY_VARIANT_STREAM"
        public var description: String { return self.rawValue }
    }

    public enum HlsCaptionLanguageSetting: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case insert = "INSERT"
        case none = "NONE"
        case omit = "OMIT"
        public var description: String { return self.rawValue }
    }

    public enum HlsCaptionSegmentLengthControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case largeSegments = "LARGE_SEGMENTS"
        case matchVideo = "MATCH_VIDEO"
        public var description: String { return self.rawValue }
    }

    public enum HlsClientCache: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum HlsCodecSpecification: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case rfc4281 = "RFC_4281"
        case rfc6381 = "RFC_6381"
        public var description: String { return self.rawValue }
    }

    public enum HlsDescriptiveVideoServiceFlag: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case dontFlag = "DONT_FLAG"
        case flag = "FLAG"
        public var description: String { return self.rawValue }
    }

    public enum HlsDirectoryStructure: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case singleDirectory = "SINGLE_DIRECTORY"
        case subdirectoryPerStream = "SUBDIRECTORY_PER_STREAM"
        public var description: String { return self.rawValue }
    }

    public enum HlsEncryptionType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case aes128 = "AES128"
        case sampleAes = "SAMPLE_AES"
        public var description: String { return self.rawValue }
    }

    public enum HlsIFrameOnlyManifest: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case exclude = "EXCLUDE"
        case include = "INCLUDE"
        public var description: String { return self.rawValue }
    }

    public enum HlsImageBasedTrickPlay: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case advanced = "ADVANCED"
        case none = "NONE"
        case thumbnail = "THUMBNAIL"
        case thumbnailAndFullframe = "THUMBNAIL_AND_FULLFRAME"
        public var description: String { return self.rawValue }
    }

    public enum HlsInitializationVectorInManifest: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case exclude = "EXCLUDE"
        case include = "INCLUDE"
        public var description: String { return self.rawValue }
    }

    public enum HlsIntervalCadence: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case followCustom = "FOLLOW_CUSTOM"
        case followIframe = "FOLLOW_IFRAME"
        public var description: String { return self.rawValue }
    }

    public enum HlsKeyProviderType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case speke = "SPEKE"
        case staticKey = "STATIC_KEY"
        public var description: String { return self.rawValue }
    }

    public enum HlsManifestCompression: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case gzip = "GZIP"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum HlsManifestDurationFormat: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case floatingPoint = "FLOATING_POINT"
        case integer = "INTEGER"
        public var description: String { return self.rawValue }
    }

    public enum HlsOfflineEncrypted: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum HlsOutputSelection: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case manifestsAndSegments = "MANIFESTS_AND_SEGMENTS"
        case segmentsOnly = "SEGMENTS_ONLY"
        public var description: String { return self.rawValue }
    }

    public enum HlsProgramDateTime: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case exclude = "EXCLUDE"
        case include = "INCLUDE"
        public var description: String { return self.rawValue }
    }

    public enum HlsProgressiveWriteHlsManifest: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum HlsSegmentControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case segmentedFiles = "SEGMENTED_FILES"
        case singleFile = "SINGLE_FILE"
        public var description: String { return self.rawValue }
    }

    public enum HlsSegmentLengthControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case exact = "EXACT"
        case gopMultiple = "GOP_MULTIPLE"
        case match = "MATCH"
        public var description: String { return self.rawValue }
    }

    public enum HlsStreamInfResolution: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case exclude = "EXCLUDE"
        case include = "INCLUDE"
        public var description: String { return self.rawValue }
    }

    public enum HlsTargetDurationCompatibilityMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case legacy = "LEGACY"
        case specCompliant = "SPEC_COMPLIANT"
        public var description: String { return self.rawValue }
    }

    public enum HlsTimedMetadataId3Frame: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case none = "NONE"
        case priv = "PRIV"
        case tdrl = "TDRL"
        public var description: String { return self.rawValue }
    }

    public enum ImscAccessibilitySubs: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum ImscStylePassthrough: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum InputDeblockFilter: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum InputDenoiseFilter: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum InputFilterEnable: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case disable = "DISABLE"
        case force = "FORCE"
        public var description: String { return self.rawValue }
    }

    public enum InputPolicy: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case allowed = "ALLOWED"
        case disallowed = "DISALLOWED"
        public var description: String { return self.rawValue }
    }

    public enum InputPsiControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case ignorePsi = "IGNORE_PSI"
        case usePsi = "USE_PSI"
        public var description: String { return self.rawValue }
    }

    public enum InputRotate: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case degree0 = "DEGREE_0"
        case degrees180 = "DEGREES_180"
        case degrees270 = "DEGREES_270"
        case degrees90 = "DEGREES_90"
        public var description: String { return self.rawValue }
    }

    public enum InputSampleRange: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case follow = "FOLLOW"
        case fullRange = "FULL_RANGE"
        case limitedRange = "LIMITED_RANGE"
        public var description: String { return self.rawValue }
    }

    public enum InputScanType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case psf = "PSF"
        public var description: String { return self.rawValue }
    }

    public enum InputTimecodeSource: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case embedded = "EMBEDDED"
        case specifiedstart = "SPECIFIEDSTART"
        case zerobased = "ZEROBASED"
        public var description: String { return self.rawValue }
    }

    public enum JobPhase: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case probing = "PROBING"
        case transcoding = "TRANSCODING"
        case uploading = "UPLOADING"
        public var description: String { return self.rawValue }
    }

    public enum JobStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case canceled = "CANCELED"
        case complete = "COMPLETE"
        case error = "ERROR"
        case progressing = "PROGRESSING"
        case submitted = "SUBMITTED"
        public var description: String { return self.rawValue }
    }

    public enum JobTemplateListBy: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case creationDate = "CREATION_DATE"
        case name = "NAME"
        case system = "SYSTEM"
        public var description: String { return self.rawValue }
    }

    public enum LanguageCode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case aar = "AAR"
        case abk = "ABK"
        case afr = "AFR"
        case aka = "AKA"
        case amh = "AMH"
        case ara = "ARA"
        case arg = "ARG"
        case asm = "ASM"
        case ava = "AVA"
        case ave = "AVE"
        case aym = "AYM"
        case aze = "AZE"
        case bak = "BAK"
        case bam = "BAM"
        case bel = "BEL"
        case ben = "BEN"
        case bih = "BIH"
        case bis = "BIS"
        case bod = "BOD"
        case bos = "BOS"
        case bre = "BRE"
        case bul = "BUL"
        case cat = "CAT"
        case ces = "CES"
        case cha = "CHA"
        case che = "CHE"
        case chu = "CHU"
        case chv = "CHV"
        case cor = "COR"
        case cos = "COS"
        case cre = "CRE"
        case cym = "CYM"
        case dan = "DAN"
        case deu = "DEU"
        case div = "DIV"
        case dzo = "DZO"
        case ell = "ELL"
        case eng = "ENG"
        case enm = "ENM"
        case epo = "EPO"
        case est = "EST"
        case eus = "EUS"
        case ewe = "EWE"
        case fao = "FAO"
        case fas = "FAS"
        case fij = "FIJ"
        case fin = "FIN"
        case fra = "FRA"
        case frm = "FRM"
        case fry = "FRY"
        case ful = "FUL"
        case ger = "GER"
        case gla = "GLA"
        case gle = "GLE"
        case glg = "GLG"
        case glv = "GLV"
        case grn = "GRN"
        case guj = "GUJ"
        case hat = "HAT"
        case hau = "HAU"
        case heb = "HEB"
        case her = "HER"
        case hin = "HIN"
        case hmo = "HMO"
        case hrv = "HRV"
        case hun = "HUN"
        case hye = "HYE"
        case ibo = "IBO"
        case ido = "IDO"
        case iii = "III"
        case iku = "IKU"
        case ile = "ILE"
        case ina = "INA"
        case ind = "IND"
        case ipk = "IPK"
        case isl = "ISL"
        case ita = "ITA"
        case jav = "JAV"
        case jpn = "JPN"
        case kal = "KAL"
        case kan = "KAN"
        case kas = "KAS"
        case kat = "KAT"
        case kau = "KAU"
        case kaz = "KAZ"
        case khm = "KHM"
        case kik = "KIK"
        case kin = "KIN"
        case kir = "KIR"
        case kom = "KOM"
        case kon = "KON"
        case kor = "KOR"
        case kua = "KUA"
        case kur = "KUR"
        case lao = "LAO"
        case lat = "LAT"
        case lav = "LAV"
        case lim = "LIM"
        case lin = "LIN"
        case lit = "LIT"
        case ltz = "LTZ"
        case lub = "LUB"
        case lug = "LUG"
        case mah = "MAH"
        case mal = "MAL"
        case mar = "MAR"
        case mkd = "MKD"
        case mlg = "MLG"
        case mlt = "MLT"
        case mon = "MON"
        case mri = "MRI"
        case msa = "MSA"
        case mya = "MYA"
        case nau = "NAU"
        case nav = "NAV"
        case nbl = "NBL"
        case nde = "NDE"
        case ndo = "NDO"
        case nep = "NEP"
        case nld = "NLD"
        case nno = "NNO"
        case nob = "NOB"
        case nor = "NOR"
        case nya = "NYA"
        case oci = "OCI"
        case oji = "OJI"
        case ori = "ORI"
        case orj = "ORJ"
        case orm = "ORM"
        case oss = "OSS"
        case pan = "PAN"
        case pli = "PLI"
        case pol = "POL"
        case por = "POR"
        case pus = "PUS"
        case qaa = "QAA"
        case qpc = "QPC"
        case que = "QUE"
        case roh = "ROH"
        case ron = "RON"
        case run = "RUN"
        case rus = "RUS"
        case sag = "SAG"
        case san = "SAN"
        case sin = "SIN"
        case slk = "SLK"
        case slv = "SLV"
        case sme = "SME"
        case smo = "SMO"
        case sna = "SNA"
        case snd = "SND"
        case som = "SOM"
        case sot = "SOT"
        case spa = "SPA"
        case sqi = "SQI"
        case srb = "SRB"
        case srd = "SRD"
        case srp = "SRP"
        case ssw = "SSW"
        case sun = "SUN"
        case swa = "SWA"
        case swe = "SWE"
        case tah = "TAH"
        case tam = "TAM"
        case tat = "TAT"
        case tel = "TEL"
        case tgk = "TGK"
        case tgl = "TGL"
        case tha = "THA"
        case tir = "TIR"
        case tng = "TNG"
        case ton = "TON"
        case tsn = "TSN"
        case tso = "TSO"
        case tuk = "TUK"
        case tur = "TUR"
        case twi = "TWI"
        case uig = "UIG"
        case ukr = "UKR"
        case urd = "URD"
        case uzb = "UZB"
        case ven = "VEN"
        case vie = "VIE"
        case vol = "VOL"
        case wln = "WLN"
        case wol = "WOL"
        case xho = "XHO"
        case yid = "YID"
        case yor = "YOR"
        case zha = "ZHA"
        case zho = "ZHO"
        case zul = "ZUL"
        public var description: String { return self.rawValue }
    }

    public enum M2tsAudioBufferModel: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case atsc = "ATSC"
        case dvb = "DVB"
        public var description: String { return self.rawValue }
    }

    public enum M2tsAudioDuration: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case defaultCodecDuration = "DEFAULT_CODEC_DURATION"
        case matchVideoDuration = "MATCH_VIDEO_DURATION"
        public var description: String { return self.rawValue }
    }

    public enum M2tsBufferModel: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case multiplex = "MULTIPLEX"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum M2tsDataPtsControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case alignToVideo = "ALIGN_TO_VIDEO"
        case auto = "AUTO"
        public var description: String { return self.rawValue }
    }

    public enum M2tsEbpAudioInterval: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case videoAndFixedIntervals = "VIDEO_AND_FIXED_INTERVALS"
        case videoInterval = "VIDEO_INTERVAL"
        public var description: String { return self.rawValue }
    }

    public enum M2tsEbpPlacement: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case videoAndAudioPids = "VIDEO_AND_AUDIO_PIDS"
        case videoPid = "VIDEO_PID"
        public var description: String { return self.rawValue }
    }

    public enum M2tsEsRateInPes: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case exclude = "EXCLUDE"
        case include = "INCLUDE"
        public var description: String { return self.rawValue }
    }

    public enum M2tsForceTsVideoEbpOrder: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case `default` = "DEFAULT"
        case force = "FORCE"
        public var description: String { return self.rawValue }
    }

    public enum M2tsKlvMetadata: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case none = "NONE"
        case passthrough = "PASSTHROUGH"
        public var description: String { return self.rawValue }
    }

    public enum M2tsNielsenId3: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case insert = "INSERT"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum M2tsPcrControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case configuredPcrPeriod = "CONFIGURED_PCR_PERIOD"
        case pcrEveryPesPacket = "PCR_EVERY_PES_PACKET"
        public var description: String { return self.rawValue }
    }

    public enum M2tsPreventBufferUnderflow: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum M2tsRateMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case cbr = "CBR"
        case vbr = "VBR"
        public var description: String { return self.rawValue }
    }

    public enum M2tsScte35Source: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case none = "NONE"
        case passthrough = "PASSTHROUGH"
        public var description: String { return self.rawValue }
    }

    public enum M2tsSegmentationMarkers: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case ebp = "EBP"
        case ebpLegacy = "EBP_LEGACY"
        case none = "NONE"
        case psiSegstart = "PSI_SEGSTART"
        case raiAdapt = "RAI_ADAPT"
        case raiSegstart = "RAI_SEGSTART"
        public var description: String { return self.rawValue }
    }

    public enum M2tsSegmentationStyle: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case maintainCadence = "MAINTAIN_CADENCE"
        case resetCadence = "RESET_CADENCE"
        public var description: String { return self.rawValue }
    }

    public enum M3u8AudioDuration: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case defaultCodecDuration = "DEFAULT_CODEC_DURATION"
        case matchVideoDuration = "MATCH_VIDEO_DURATION"
        public var description: String { return self.rawValue }
    }

    public enum M3u8DataPtsControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case alignToVideo = "ALIGN_TO_VIDEO"
        case auto = "AUTO"
        public var description: String { return self.rawValue }
    }

    public enum M3u8NielsenId3: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case insert = "INSERT"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum M3u8PcrControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case configuredPcrPeriod = "CONFIGURED_PCR_PERIOD"
        case pcrEveryPesPacket = "PCR_EVERY_PES_PACKET"
        public var description: String { return self.rawValue }
    }

    public enum M3u8Scte35Source: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case none = "NONE"
        case passthrough = "PASSTHROUGH"
        public var description: String { return self.rawValue }
    }

    public enum MatrixCoefficients: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case cdCl = "CD_CL"
        case cdNcl = "CD_NCL"
        case ebu3213 = "EBU3213"
        case fcc = "FCC"
        case ipt = "IPT"
        case itu2020Cl = "ITU_2020_CL"
        case itu2020Ncl = "ITU_2020_NCL"
        case itu2100Ictcp = "ITU_2100ICtCp"
        case itu470Bg = "ITU_470BG"
        case itu709 = "ITU_709"
        case last = "LAST"
        case reserved = "RESERVED"
        case rgb = "RGB"
        case smpte170M = "SMPTE_170M"
        case smpte2085 = "SMPTE_2085"
        case smpte240M = "SMPTE_240M"
        case unspecified = "UNSPECIFIED"
        case yCgCo = "YCgCo"
        public var description: String { return self.rawValue }
    }

    public enum MotionImageInsertionMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case mov = "MOV"
        case png = "PNG"
        public var description: String { return self.rawValue }
    }

    public enum MotionImagePlayback: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case `repeat` = "REPEAT"
        case once = "ONCE"
        public var description: String { return self.rawValue }
    }

    public enum MovClapAtom: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case exclude = "EXCLUDE"
        case include = "INCLUDE"
        public var description: String { return self.rawValue }
    }

    public enum MovCslgAtom: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case exclude = "EXCLUDE"
        case include = "INCLUDE"
        public var description: String { return self.rawValue }
    }

    public enum MovMpeg2FourCCControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case mpeg = "MPEG"
        case xdcam = "XDCAM"
        public var description: String { return self.rawValue }
    }

    public enum MovPaddingControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case none = "NONE"
        case omneon = "OMNEON"
        public var description: String { return self.rawValue }
    }

    public enum MovReference: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case external = "EXTERNAL"
        case selfContained = "SELF_CONTAINED"
        public var description: String { return self.rawValue }
    }

    public enum Mp3RateControlMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case cbr = "CBR"
        case vbr = "VBR"
        public var description: String { return self.rawValue }
    }

    public enum Mp4C2paManifest: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case exclude = "EXCLUDE"
        case include = "INCLUDE"
        public var description: String { return self.rawValue }
    }

    public enum Mp4CslgAtom: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case exclude = "EXCLUDE"
        case include = "INCLUDE"
        public var description: String { return self.rawValue }
    }

    public enum Mp4FreeSpaceBox: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case exclude = "EXCLUDE"
        case include = "INCLUDE"
        public var description: String { return self.rawValue }
    }

    public enum Mp4MoovPlacement: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case normal = "NORMAL"
        case progressiveDownload = "PROGRESSIVE_DOWNLOAD"
        public var description: String { return self.rawValue }
    }

    public enum MpdAccessibilityCaptionHints: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case exclude = "EXCLUDE"
        case include = "INCLUDE"
        public var description: String { return self.rawValue }
    }

    public enum MpdAudioDuration: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case defaultCodecDuration = "DEFAULT_CODEC_DURATION"
        case matchVideoDuration = "MATCH_VIDEO_DURATION"
        public var description: String { return self.rawValue }
    }

    public enum MpdCaptionContainerType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case fragmentedMp4 = "FRAGMENTED_MP4"
        case raw = "RAW"
        public var description: String { return self.rawValue }
    }

    public enum MpdKlvMetadata: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case none = "NONE"
        case passthrough = "PASSTHROUGH"
        public var description: String { return self.rawValue }
    }

    public enum MpdManifestMetadataSignaling: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum MpdScte35Esam: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case insert = "INSERT"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum MpdScte35Source: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case none = "NONE"
        case passthrough = "PASSTHROUGH"
        public var description: String { return self.rawValue }
    }

    public enum MpdTimedMetadata: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case none = "NONE"
        case passthrough = "PASSTHROUGH"
        public var description: String { return self.rawValue }
    }

    public enum MpdTimedMetadataBoxVersion: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case version0 = "VERSION_0"
        case version1 = "VERSION_1"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2AdaptiveQuantization: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case high = "HIGH"
        case low = "LOW"
        case medium = "MEDIUM"
        case off = "OFF"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2CodecLevel: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case high = "HIGH"
        case high1440 = "HIGH1440"
        case low = "LOW"
        case main = "MAIN"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2CodecProfile: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case main = "MAIN"
        case profile422 = "PROFILE_422"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2DynamicSubGop: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case `static` = "STATIC"
        case adaptive = "ADAPTIVE"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2FramerateControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2FramerateConversionAlgorithm: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case duplicateDrop = "DUPLICATE_DROP"
        case frameformer = "FRAMEFORMER"
        case interpolate = "INTERPOLATE"
        case maintainFrameCount = "MAINTAIN_FRAME_COUNT"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2GopSizeUnits: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case frames = "FRAMES"
        case seconds = "SECONDS"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2InterlaceMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case bottomField = "BOTTOM_FIELD"
        case followBottomField = "FOLLOW_BOTTOM_FIELD"
        case followTopField = "FOLLOW_TOP_FIELD"
        case progressive = "PROGRESSIVE"
        case topField = "TOP_FIELD"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2IntraDcPrecision: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case intraDcPrecision10 = "INTRA_DC_PRECISION_10"
        case intraDcPrecision11 = "INTRA_DC_PRECISION_11"
        case intraDcPrecision8 = "INTRA_DC_PRECISION_8"
        case intraDcPrecision9 = "INTRA_DC_PRECISION_9"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2ParControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2QualityTuningLevel: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case multiPass = "MULTI_PASS"
        case singlePass = "SINGLE_PASS"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2RateControlMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case cbr = "CBR"
        case vbr = "VBR"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2ScanTypeConversionMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case interlaced = "INTERLACED"
        case interlacedOptimize = "INTERLACED_OPTIMIZE"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2SceneChangeDetect: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2SlowPal: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2SpatialAdaptiveQuantization: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2Syntax: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case `default` = "DEFAULT"
        case d10 = "D_10"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2Telecine: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case hard = "HARD"
        case none = "NONE"
        case soft = "SOFT"
        public var description: String { return self.rawValue }
    }

    public enum Mpeg2TemporalAdaptiveQuantization: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum MsSmoothAudioDeduplication: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case combineDuplicateStreams = "COMBINE_DUPLICATE_STREAMS"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum MsSmoothFragmentLengthControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case exact = "EXACT"
        case gopMultiple = "GOP_MULTIPLE"
        public var description: String { return self.rawValue }
    }

    public enum MsSmoothManifestEncoding: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case utf16 = "UTF16"
        case utf8 = "UTF8"
        public var description: String { return self.rawValue }
    }

    public enum MxfAfdSignaling: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case copyFromVideo = "COPY_FROM_VIDEO"
        case noCopy = "NO_COPY"
        public var description: String { return self.rawValue }
    }

    public enum MxfProfile: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case d10 = "D_10"
        case op1a = "OP1A"
        case xavc = "XAVC"
        case xdcam = "XDCAM"
        case xdcamRdd9 = "XDCAM_RDD9"
        public var description: String { return self.rawValue }
    }

    public enum MxfXavcDurationMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case allowAnyDuration = "ALLOW_ANY_DURATION"
        case dropFramesForCompliance = "DROP_FRAMES_FOR_COMPLIANCE"
        public var description: String { return self.rawValue }
    }

    public enum NielsenActiveWatermarkProcessType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case cbet = "CBET"
        case naes2AndNw = "NAES2_AND_NW"
        case naes2AndNwAndCbet = "NAES2_AND_NW_AND_CBET"
        public var description: String { return self.rawValue }
    }

    public enum NielsenSourceWatermarkStatusType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case clean = "CLEAN"
        case watermarked = "WATERMARKED"
        public var description: String { return self.rawValue }
    }

    public enum NielsenUniqueTicPerAudioTrackType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case reserveUniqueTicsPerTrack = "RESERVE_UNIQUE_TICS_PER_TRACK"
        case sameTicsPerTrack = "SAME_TICS_PER_TRACK"
        public var description: String { return self.rawValue }
    }

    public enum NoiseFilterPostTemporalSharpening: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum NoiseFilterPostTemporalSharpeningStrength: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case high = "HIGH"
        case low = "LOW"
        case medium = "MEDIUM"
        public var description: String { return self.rawValue }
    }

    public enum NoiseReducerFilter: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case bilateral = "BILATERAL"
        case conserve = "CONSERVE"
        case gaussian = "GAUSSIAN"
        case lanczos = "LANCZOS"
        case mean = "MEAN"
        case sharpen = "SHARPEN"
        case spatial = "SPATIAL"
        case temporal = "TEMPORAL"
        public var description: String { return self.rawValue }
    }

    public enum Order: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case ascending = "ASCENDING"
        case descending = "DESCENDING"
        public var description: String { return self.rawValue }
    }

    public enum OutputGroupType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case cmafGroupSettings = "CMAF_GROUP_SETTINGS"
        case dashIsoGroupSettings = "DASH_ISO_GROUP_SETTINGS"
        case fileGroupSettings = "FILE_GROUP_SETTINGS"
        case hlsGroupSettings = "HLS_GROUP_SETTINGS"
        case msSmoothGroupSettings = "MS_SMOOTH_GROUP_SETTINGS"
        public var description: String { return self.rawValue }
    }

    public enum OutputSdt: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case sdtFollow = "SDT_FOLLOW"
        case sdtFollowIfPresent = "SDT_FOLLOW_IF_PRESENT"
        case sdtManual = "SDT_MANUAL"
        case sdtNone = "SDT_NONE"
        public var description: String { return self.rawValue }
    }

    public enum PadVideo: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case black = "BLACK"
        case disabled = "DISABLED"
        public var description: String { return self.rawValue }
    }

    public enum PresetListBy: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case creationDate = "CREATION_DATE"
        case name = "NAME"
        case system = "SYSTEM"
        public var description: String { return self.rawValue }
    }

    public enum PresetSpeke20Audio: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case presetAudio1 = "PRESET_AUDIO_1"
        case presetAudio2 = "PRESET_AUDIO_2"
        case presetAudio3 = "PRESET_AUDIO_3"
        case shared = "SHARED"
        case unencrypted = "UNENCRYPTED"
        public var description: String { return self.rawValue }
    }

    public enum PresetSpeke20Video: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case presetVideo1 = "PRESET_VIDEO_1"
        case presetVideo2 = "PRESET_VIDEO_2"
        case presetVideo3 = "PRESET_VIDEO_3"
        case presetVideo4 = "PRESET_VIDEO_4"
        case presetVideo5 = "PRESET_VIDEO_5"
        case presetVideo6 = "PRESET_VIDEO_6"
        case presetVideo7 = "PRESET_VIDEO_7"
        case presetVideo8 = "PRESET_VIDEO_8"
        case shared = "SHARED"
        case unencrypted = "UNENCRYPTED"
        public var description: String { return self.rawValue }
    }

    public enum PricingPlan: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case onDemand = "ON_DEMAND"
        case reserved = "RESERVED"
        public var description: String { return self.rawValue }
    }

    public enum ProresChromaSampling: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case preserve444Sampling = "PRESERVE_444_SAMPLING"
        case subsampleTo422 = "SUBSAMPLE_TO_422"
        public var description: String { return self.rawValue }
    }

    public enum ProresCodecProfile: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case appleProres422 = "APPLE_PRORES_422"
        case appleProres422Hq = "APPLE_PRORES_422_HQ"
        case appleProres422Lt = "APPLE_PRORES_422_LT"
        case appleProres422Proxy = "APPLE_PRORES_422_PROXY"
        case appleProres4444 = "APPLE_PRORES_4444"
        case appleProres4444Xq = "APPLE_PRORES_4444_XQ"
        public var description: String { return self.rawValue }
    }

    public enum ProresFramerateControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum ProresFramerateConversionAlgorithm: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case duplicateDrop = "DUPLICATE_DROP"
        case frameformer = "FRAMEFORMER"
        case interpolate = "INTERPOLATE"
        case maintainFrameCount = "MAINTAIN_FRAME_COUNT"
        public var description: String { return self.rawValue }
    }

    public enum ProresInterlaceMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case bottomField = "BOTTOM_FIELD"
        case followBottomField = "FOLLOW_BOTTOM_FIELD"
        case followTopField = "FOLLOW_TOP_FIELD"
        case progressive = "PROGRESSIVE"
        case topField = "TOP_FIELD"
        public var description: String { return self.rawValue }
    }

    public enum ProresParControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum ProresScanTypeConversionMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case interlaced = "INTERLACED"
        case interlacedOptimize = "INTERLACED_OPTIMIZE"
        public var description: String { return self.rawValue }
    }

    public enum ProresSlowPal: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum ProresTelecine: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case hard = "HARD"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum QueueListBy: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case creationDate = "CREATION_DATE"
        case name = "NAME"
        public var description: String { return self.rawValue }
    }

    public enum QueueStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case active = "ACTIVE"
        case paused = "PAUSED"
        public var description: String { return self.rawValue }
    }

    public enum RemoveRubyReserveAttributes: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum RenewalType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case autoRenew = "AUTO_RENEW"
        case expire = "EXPIRE"
        public var description: String { return self.rawValue }
    }

    public enum RequiredFlag: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum ReservationPlanStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case active = "ACTIVE"
        case expired = "EXPIRED"
        public var description: String { return self.rawValue }
    }

    public enum RespondToAfd: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case none = "NONE"
        case passthrough = "PASSTHROUGH"
        case respond = "RESPOND"
        public var description: String { return self.rawValue }
    }

    public enum RuleType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case allowedRenditions = "ALLOWED_RENDITIONS"
        case forceIncludeRenditions = "FORCE_INCLUDE_RENDITIONS"
        case minBottomRenditionSize = "MIN_BOTTOM_RENDITION_SIZE"
        case minTopRenditionSize = "MIN_TOP_RENDITION_SIZE"
        public var description: String { return self.rawValue }
    }

    public enum S3ObjectCannedAcl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case authenticatedRead = "AUTHENTICATED_READ"
        case bucketOwnerFullControl = "BUCKET_OWNER_FULL_CONTROL"
        case bucketOwnerRead = "BUCKET_OWNER_READ"
        case publicRead = "PUBLIC_READ"
        public var description: String { return self.rawValue }
    }

    public enum S3ServerSideEncryptionType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case serverSideEncryptionKms = "SERVER_SIDE_ENCRYPTION_KMS"
        case serverSideEncryptionS3 = "SERVER_SIDE_ENCRYPTION_S3"
        public var description: String { return self.rawValue }
    }

    public enum S3StorageClass: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case deepArchive = "DEEP_ARCHIVE"
        case glacier = "GLACIER"
        case intelligentTiering = "INTELLIGENT_TIERING"
        case onezoneIa = "ONEZONE_IA"
        case reducedRedundancy = "REDUCED_REDUNDANCY"
        case standard = "STANDARD"
        case standardIa = "STANDARD_IA"
        public var description: String { return self.rawValue }
    }

    public enum SampleRangeConversion: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case limitedRangeClip = "LIMITED_RANGE_CLIP"
        case limitedRangeSqueeze = "LIMITED_RANGE_SQUEEZE"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum ScalingBehavior: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case `default` = "DEFAULT"
        case fill = "FILL"
        case fit = "FIT"
        case fitNoUpscale = "FIT_NO_UPSCALE"
        case stretchToOutput = "STRETCH_TO_OUTPUT"
        public var description: String { return self.rawValue }
    }

    public enum SccDestinationFramerate: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case framerate2397 = "FRAMERATE_23_97"
        case framerate24 = "FRAMERATE_24"
        case framerate25 = "FRAMERATE_25"
        case framerate2997Dropframe = "FRAMERATE_29_97_DROPFRAME"
        case framerate2997NonDropframe = "FRAMERATE_29_97_NON_DROPFRAME"
        public var description: String { return self.rawValue }
    }

    public enum SimulateReservedQueue: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum SrtStylePassthrough: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum StatusUpdateInterval: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case seconds10 = "SECONDS_10"
        case seconds12 = "SECONDS_12"
        case seconds120 = "SECONDS_120"
        case seconds15 = "SECONDS_15"
        case seconds180 = "SECONDS_180"
        case seconds20 = "SECONDS_20"
        case seconds240 = "SECONDS_240"
        case seconds30 = "SECONDS_30"
        case seconds300 = "SECONDS_300"
        case seconds360 = "SECONDS_360"
        case seconds420 = "SECONDS_420"
        case seconds480 = "SECONDS_480"
        case seconds540 = "SECONDS_540"
        case seconds60 = "SECONDS_60"
        case seconds600 = "SECONDS_600"
        public var description: String { return self.rawValue }
    }

    public enum TamsGapHandling: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case fillWithBlack = "FILL_WITH_BLACK"
        case holdLastFrame = "HOLD_LAST_FRAME"
        case skipGaps = "SKIP_GAPS"
        public var description: String { return self.rawValue }
    }

    public enum TeletextPageType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case pageTypeAddlInfo = "PAGE_TYPE_ADDL_INFO"
        case pageTypeHearingImpairedSubtitle = "PAGE_TYPE_HEARING_IMPAIRED_SUBTITLE"
        case pageTypeInitial = "PAGE_TYPE_INITIAL"
        case pageTypeProgramSchedule = "PAGE_TYPE_PROGRAM_SCHEDULE"
        case pageTypeSubtitle = "PAGE_TYPE_SUBTITLE"
        public var description: String { return self.rawValue }
    }

    public enum TimecodeBurninPosition: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case bottomCenter = "BOTTOM_CENTER"
        case bottomLeft = "BOTTOM_LEFT"
        case bottomRight = "BOTTOM_RIGHT"
        case middleCenter = "MIDDLE_CENTER"
        case middleLeft = "MIDDLE_LEFT"
        case middleRight = "MIDDLE_RIGHT"
        case topCenter = "TOP_CENTER"
        case topLeft = "TOP_LEFT"
        case topRight = "TOP_RIGHT"
        public var description: String { return self.rawValue }
    }

    public enum TimecodeSource: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case embedded = "EMBEDDED"
        case specifiedstart = "SPECIFIEDSTART"
        case zerobased = "ZEROBASED"
        public var description: String { return self.rawValue }
    }

    public enum TimecodeTrack: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum TimedMetadata: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case none = "NONE"
        case passthrough = "PASSTHROUGH"
        public var description: String { return self.rawValue }
    }

    public enum TrackType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case audio = "audio"
        case data = "data"
        case video = "video"
        public var description: String { return self.rawValue }
    }

    public enum TransferCharacteristics: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case aribB67 = "ARIB_B67"
        case iec6196621 = "IEC_61966_2_1"
        case iec6196624 = "IEC_61966_2_4"
        case itu1361 = "ITU_1361"
        case itu202010Bit = "ITU_2020_10bit"
        case itu202012Bit = "ITU_2020_12bit"
        case itu470Bg = "ITU_470BG"
        case itu470M = "ITU_470M"
        case itu709 = "ITU_709"
        case last = "LAST"
        case linear = "LINEAR"
        case loc1025 = "LOC10_2_5"
        case log102 = "LOG10_2"
        case reserved = "RESERVED"
        case smpte170M = "SMPTE_170M"
        case smpte2084 = "SMPTE_2084"
        case smpte240M = "SMPTE_240M"
        case smpte4281 = "SMPTE_428_1"
        case unspecified = "UNSPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum TsPtsOffset: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case milliseconds = "MILLISECONDS"
        case seconds = "SECONDS"
        public var description: String { return self.rawValue }
    }

    public enum TtmlStylePassthrough: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum UncompressedFourcc: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case i420 = "I420"
        case i422 = "I422"
        case i444 = "I444"
        public var description: String { return self.rawValue }
    }

    public enum UncompressedFramerateControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum UncompressedFramerateConversionAlgorithm: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case duplicateDrop = "DUPLICATE_DROP"
        case frameformer = "FRAMEFORMER"
        case interpolate = "INTERPOLATE"
        case maintainFrameCount = "MAINTAIN_FRAME_COUNT"
        public var description: String { return self.rawValue }
    }

    public enum UncompressedInterlaceMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case interlaced = "INTERLACED"
        case progressive = "PROGRESSIVE"
        public var description: String { return self.rawValue }
    }

    public enum UncompressedScanTypeConversionMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case interlaced = "INTERLACED"
        case interlacedOptimize = "INTERLACED_OPTIMIZE"
        public var description: String { return self.rawValue }
    }

    public enum UncompressedSlowPal: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum UncompressedTelecine: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case hard = "HARD"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum Vc3Class: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case class1458Bit = "CLASS_145_8BIT"
        case class22010Bit = "CLASS_220_10BIT"
        case class2208Bit = "CLASS_220_8BIT"
        public var description: String { return self.rawValue }
    }

    public enum Vc3FramerateControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum Vc3FramerateConversionAlgorithm: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case duplicateDrop = "DUPLICATE_DROP"
        case frameformer = "FRAMEFORMER"
        case interpolate = "INTERPOLATE"
        case maintainFrameCount = "MAINTAIN_FRAME_COUNT"
        public var description: String { return self.rawValue }
    }

    public enum Vc3InterlaceMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case interlaced = "INTERLACED"
        case progressive = "PROGRESSIVE"
        public var description: String { return self.rawValue }
    }

    public enum Vc3ScanTypeConversionMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case interlaced = "INTERLACED"
        case interlacedOptimize = "INTERLACED_OPTIMIZE"
        public var description: String { return self.rawValue }
    }

    public enum Vc3SlowPal: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum Vc3Telecine: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case hard = "HARD"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum VchipAction: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case passthrough = "PASSTHROUGH"
        case strip = "STRIP"
        public var description: String { return self.rawValue }
    }

    public enum VideoCodec: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case av1 = "AV1"
        case avcIntra = "AVC_INTRA"
        case frameCapture = "FRAME_CAPTURE"
        case gif = "GIF"
        case h264 = "H_264"
        case h265 = "H_265"
        case mpeg2 = "MPEG2"
        case passthrough = "PASSTHROUGH"
        case prores = "PRORES"
        case uncompressed = "UNCOMPRESSED"
        case vc3 = "VC3"
        case vp8 = "VP8"
        case vp9 = "VP9"
        case xavc = "XAVC"
        public var description: String { return self.rawValue }
    }

    public enum VideoOverlayPlayBackMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case `repeat` = "REPEAT"
        case once = "ONCE"
        public var description: String { return self.rawValue }
    }

    public enum VideoOverlayUnit: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case percentage = "PERCENTAGE"
        case pixels = "PIXELS"
        public var description: String { return self.rawValue }
    }

    public enum VideoTimecodeInsertion: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case picTimingSei = "PIC_TIMING_SEI"
        public var description: String { return self.rawValue }
    }

    public enum Vp8FramerateControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum Vp8FramerateConversionAlgorithm: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case duplicateDrop = "DUPLICATE_DROP"
        case frameformer = "FRAMEFORMER"
        case interpolate = "INTERPOLATE"
        case maintainFrameCount = "MAINTAIN_FRAME_COUNT"
        public var description: String { return self.rawValue }
    }

    public enum Vp8ParControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum Vp8QualityTuningLevel: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case multiPass = "MULTI_PASS"
        case multiPassHq = "MULTI_PASS_HQ"
        public var description: String { return self.rawValue }
    }

    public enum Vp8RateControlMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case vbr = "VBR"
        public var description: String { return self.rawValue }
    }

    public enum Vp9FramerateControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum Vp9FramerateConversionAlgorithm: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case duplicateDrop = "DUPLICATE_DROP"
        case frameformer = "FRAMEFORMER"
        case interpolate = "INTERPOLATE"
        case maintainFrameCount = "MAINTAIN_FRAME_COUNT"
        public var description: String { return self.rawValue }
    }

    public enum Vp9ParControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum Vp9QualityTuningLevel: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case multiPass = "MULTI_PASS"
        case multiPassHq = "MULTI_PASS_HQ"
        public var description: String { return self.rawValue }
    }

    public enum Vp9RateControlMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case vbr = "VBR"
        public var description: String { return self.rawValue }
    }

    public enum WatermarkingStrength: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case `default` = "DEFAULT"
        case lighter = "LIGHTER"
        case lightest = "LIGHTEST"
        case stronger = "STRONGER"
        case strongest = "STRONGEST"
        public var description: String { return self.rawValue }
    }

    public enum WavFormat: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case extensible = "EXTENSIBLE"
        case rf64 = "RF64"
        case riff = "RIFF"
        public var description: String { return self.rawValue }
    }

    public enum WebvttAccessibilitySubs: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum WebvttStylePassthrough: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        case merge = "MERGE"
        case strict = "STRICT"
        public var description: String { return self.rawValue }
    }

    public enum Xavc4kIntraCbgProfileClass: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case class100 = "CLASS_100"
        case class300 = "CLASS_300"
        case class480 = "CLASS_480"
        public var description: String { return self.rawValue }
    }

    public enum Xavc4kIntraVbrProfileClass: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case class100 = "CLASS_100"
        case class300 = "CLASS_300"
        case class480 = "CLASS_480"
        public var description: String { return self.rawValue }
    }

    public enum Xavc4kProfileBitrateClass: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case bitrateClass100 = "BITRATE_CLASS_100"
        case bitrateClass140 = "BITRATE_CLASS_140"
        case bitrateClass200 = "BITRATE_CLASS_200"
        public var description: String { return self.rawValue }
    }

    public enum Xavc4kProfileCodecProfile: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case high = "HIGH"
        case high422 = "HIGH_422"
        public var description: String { return self.rawValue }
    }

    public enum Xavc4kProfileQualityTuningLevel: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case multiPassHq = "MULTI_PASS_HQ"
        case singlePass = "SINGLE_PASS"
        case singlePassHq = "SINGLE_PASS_HQ"
        public var description: String { return self.rawValue }
    }

    public enum XavcAdaptiveQuantization: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case high = "HIGH"
        case higher = "HIGHER"
        case low = "LOW"
        case max = "MAX"
        case medium = "MEDIUM"
        case off = "OFF"
        public var description: String { return self.rawValue }
    }

    public enum XavcEntropyEncoding: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case cabac = "CABAC"
        case cavlc = "CAVLC"
        public var description: String { return self.rawValue }
    }

    public enum XavcFlickerAdaptiveQuantization: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum XavcFramerateControl: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case initializeFromSource = "INITIALIZE_FROM_SOURCE"
        case specified = "SPECIFIED"
        public var description: String { return self.rawValue }
    }

    public enum XavcFramerateConversionAlgorithm: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case duplicateDrop = "DUPLICATE_DROP"
        case frameformer = "FRAMEFORMER"
        case interpolate = "INTERPOLATE"
        case maintainFrameCount = "MAINTAIN_FRAME_COUNT"
        public var description: String { return self.rawValue }
    }

    public enum XavcGopBReference: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum XavcHdIntraCbgProfileClass: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case class100 = "CLASS_100"
        case class200 = "CLASS_200"
        case class50 = "CLASS_50"
        public var description: String { return self.rawValue }
    }

    public enum XavcHdProfileBitrateClass: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case bitrateClass25 = "BITRATE_CLASS_25"
        case bitrateClass35 = "BITRATE_CLASS_35"
        case bitrateClass50 = "BITRATE_CLASS_50"
        public var description: String { return self.rawValue }
    }

    public enum XavcHdProfileQualityTuningLevel: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case multiPassHq = "MULTI_PASS_HQ"
        case singlePass = "SINGLE_PASS"
        case singlePassHq = "SINGLE_PASS_HQ"
        public var description: String { return self.rawValue }
    }

    public enum XavcHdProfileTelecine: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case hard = "HARD"
        case none = "NONE"
        public var description: String { return self.rawValue }
    }

    public enum XavcInterlaceMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case bottomField = "BOTTOM_FIELD"
        case followBottomField = "FOLLOW_BOTTOM_FIELD"
        case followTopField = "FOLLOW_TOP_FIELD"
        case progressive = "PROGRESSIVE"
        case topField = "TOP_FIELD"
        public var description: String { return self.rawValue }
    }

    public enum XavcProfile: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case xavc4K = "XAVC_4K"
        case xavc4KIntraCbg = "XAVC_4K_INTRA_CBG"
        case xavc4KIntraVbr = "XAVC_4K_INTRA_VBR"
        case xavcHd = "XAVC_HD"
        case xavcHdIntraCbg = "XAVC_HD_INTRA_CBG"
        public var description: String { return self.rawValue }
    }

    public enum XavcSlowPal: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum XavcSpatialAdaptiveQuantization: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum XavcTemporalAdaptiveQuantization: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum `Type`: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case custom = "CUSTOM"
        case system = "SYSTEM"
        public var description: String { return self.rawValue }
    }

    // MARK: Shapes

    public struct AacSettings: AWSEncodableShape & AWSDecodableShape {
        /// Choose BROADCASTER_MIXED_AD when the input contains pre-mixed main audio + audio description (AD) as a stereo pair. The value for AudioType will be set to 3, which signals to downstream systems that this stream contains "broadcaster mixed AD". Note that the input received by the encoder must contain pre-mixed audio; the encoder does not perform the mixing. When you choose BROADCASTER_MIXED_AD, the encoder ignores any values you provide in AudioType and FollowInputAudioType. Choose NORMAL when the input does not contain pre-mixed audio + audio description (AD). In this case, the encoder will use any values you provide for AudioType and FollowInputAudioType.
        public let audioDescriptionBroadcasterMix: AacAudioDescriptionBroadcasterMix?
        /// Specify the average bitrate in bits per second. The set of valid values for this setting is: 6000, 8000, 10000, 12000, 14000, 16000, 20000, 24000, 28000, 32000, 40000, 48000, 56000, 64000, 80000, 96000, 112000, 128000, 160000, 192000, 224000, 256000, 288000, 320000, 384000, 448000, 512000, 576000, 640000, 768000, 896000, 1024000. The value you set is also constrained by the values that you choose for Profile, Bitrate control mode, and Sample rate. Default values depend on Bitrate control mode and Profile.
        public let bitrate: Int?
        /// Specify the AAC profile. For the widest player compatibility and where higher bitrates are acceptable: Keep the default profile, LC (AAC-LC) For improved audio performance at lower bitrates: Choose HEV1 or HEV2. HEV1 (AAC-HE v1) adds spectral band replication to improve speech audio at low bitrates. HEV2 (AAC-HE v2) adds parametric stereo, which optimizes for encoding stereo audio at very low bitrates.
        public let codecProfile: AacCodecProfile?
        /// The Coding mode that you specify determines the number of audio channels and the audio channel layout metadata in your AAC output. Valid coding modes depend on the Rate control mode and Profile that you select. The following list shows the number of audio channels and channel layout for each coding mode. * 1.0 Audio Description (Receiver Mix): One channel, C. Includes audio description data from your stereo input. For more information see ETSI TS 101 154 Annex E. * 1.0 Mono: One channel, C. * 2.0 Stereo: Two channels, L, R. * 5.1 Surround: Six channels, C, L, R, Ls, Rs, LFE.
        public let codingMode: AacCodingMode?
        /// Choose the loudness measurement mode for your audio content. For music or advertisements: We recommend that you keep the default value, Program. For speech or other content: We recommend that you choose Anchor. When you do, MediaConvert optimizes the loudness of your output for clarify by applying speech gates.
        public let loudnessMeasurementMode: AacLoudnessMeasurementMode?
        /// Specify the RAP (Random Access Point) interval for your xHE-AAC audio output. A RAP allows a decoder to decode audio data mid-stream, without the need to reference previous audio frames, and perform adaptive audio bitrate switching. To specify the RAP interval: Enter an integer from 2000 to 30000, in milliseconds. Smaller values allow for better seeking and more frequent stream switching, while large values improve compression efficiency. To have MediaConvert automatically determine the RAP interval: Leave blank.
        public let rapInterval: Int?
        /// Specify the AAC rate control mode. For a constant bitrate: Choose CBR. Your AAC output bitrate will be equal to the value that you choose for Bitrate. For a variable bitrate: Choose VBR. Your AAC output bitrate will vary according to your audio content and the value that you choose for Bitrate quality.
        public let rateControlMode: AacRateControlMode?
        /// Enables LATM/LOAS AAC output. Note that if you use LATM/LOAS AAC in an output, you must choose "No container" for the output container.
        public let rawFormat: AacRawFormat?
        /// Specify the AAC sample rate in samples per second (Hz). Valid sample rates depend on the AAC profile and Coding mode that you select. For a list of supported sample rates, see: https://docs.aws.amazon.com/mediaconvert/latest/ug/aac-support.html
        public let sampleRate: Int?
        /// Use MPEG-2 AAC instead of MPEG-4 AAC audio for raw or MPEG-2 Transport Stream containers.
        public let specification: AacSpecification?
        /// Specify the xHE-AAC loudness target. Enter an integer from 6 to 16, representing "loudness units". For more information, see the following specification: Supplementary information for R 128 EBU Tech 3342-2023.
        public let targetLoudnessRange: Int?
        /// Specify the quality of your variable bitrate (VBR) AAC audio. For a list of approximate VBR bitrates, see: https://docs.aws.amazon.com/mediaconvert/latest/ug/aac-support.html#aac_vbr
        public let vbrQuality: AacVbrQuality?

        @inlinable
        public init(audioDescriptionBroadcasterMix: AacAudioDescriptionBroadcasterMix? = nil, bitrate: Int? = nil, codecProfile: AacCodecProfile? = nil, codingMode: AacCodingMode? = nil, loudnessMeasurementMode: AacLoudnessMeasurementMode? = nil, rapInterval: Int? = nil, rateControlMode: AacRateControlMode? = nil, rawFormat: AacRawFormat? = nil, sampleRate: Int? = nil, specification: AacSpecification? = nil, targetLoudnessRange: Int? = nil, vbrQuality: AacVbrQuality? = nil) {
            self.audioDescriptionBroadcasterMix = audioDescriptionBroadcasterMix
            self.bitrate = bitrate
            self.codecProfile = codecProfile
            self.codingMode = codingMode
            self.loudnessMeasurementMode = loudnessMeasurementMode
            self.rapInterval = rapInterval
            self.rateControlMode = rateControlMode
            self.rawFormat = rawFormat
            self.sampleRate = sampleRate
            self.specification = specification
            self.targetLoudnessRange = targetLoudnessRange
            self.vbrQuality = vbrQuality
        }

        public func validate(name: String) throws {
            try self.validate(self.bitrate, name: "bitrate", parent: name, max: 1024000)
            try self.validate(self.bitrate, name: "bitrate", parent: name, min: 6000)
            try self.validate(self.rapInterval, name: "rapInterval", parent: name, max: 30000)
            try self.validate(self.rapInterval, name: "rapInterval", parent: name, min: 2000)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, max: 96000)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, min: 8000)
            try self.validate(self.targetLoudnessRange, name: "targetLoudnessRange", parent: name, max: 16)
            try self.validate(self.targetLoudnessRange, name: "targetLoudnessRange", parent: name, min: 6)
        }

        private enum CodingKeys: String, CodingKey {
            case audioDescriptionBroadcasterMix = "audioDescriptionBroadcasterMix"
            case bitrate = "bitrate"
            case codecProfile = "codecProfile"
            case codingMode = "codingMode"
            case loudnessMeasurementMode = "loudnessMeasurementMode"
            case rapInterval = "rapInterval"
            case rateControlMode = "rateControlMode"
            case rawFormat = "rawFormat"
            case sampleRate = "sampleRate"
            case specification = "specification"
            case targetLoudnessRange = "targetLoudnessRange"
            case vbrQuality = "vbrQuality"
        }
    }

    public struct Ac3Settings: AWSEncodableShape & AWSDecodableShape {
        /// Specify the average bitrate in bits per second. The bitrate that you specify must be a multiple of 8000 within the allowed minimum and maximum values. Leave blank to use the default bitrate for the coding mode you select according ETSI TS 102 366. Valid bitrates for coding mode 1/0: Default: 96000. Minimum: 64000. Maximum: 128000. Valid bitrates for coding mode 1/1: Default: 192000. Minimum: 128000. Maximum: 384000. Valid bitrates for coding mode 2/0: Default: 192000. Minimum: 128000. Maximum: 384000. Valid bitrates for coding mode 3/2 with FLE: Default: 384000. Minimum: 384000. Maximum: 640000.
        public let bitrate: Int?
        /// Specify the bitstream mode for the AC-3 stream that the encoder emits. For more information about the AC3 bitstream mode, see ATSC A/52-2012 (Annex E).
        public let bitstreamMode: Ac3BitstreamMode?
        /// Dolby Digital coding mode. Determines number of channels.
        public let codingMode: Ac3CodingMode?
        /// Sets the dialnorm for the output. If blank and input audio is Dolby Digital, dialnorm will be passed through.
        public let dialnorm: Int?
        /// Choose the Dolby Digital dynamic range control (DRC) profile that MediaConvert uses when encoding the metadata in the Dolby Digital stream for the line operating mode. Related setting: When you use this setting, MediaConvert ignores any value you provide for Dynamic range compression profile. For information about the Dolby Digital DRC operating modes and profiles, see the Dynamic Range Control chapter of the Dolby Metadata Guide at https://developer.dolby.com/globalassets/professional/documents/dolby-metadata-guide.pdf.
        public let dynamicRangeCompressionLine: Ac3DynamicRangeCompressionLine?
        /// When you want to add Dolby dynamic range compression (DRC) signaling to your output stream, we recommend that you use the mode-specific settings instead of Dynamic range compression profile. The mode-specific settings are Dynamic range compression profile, line mode and Dynamic range compression profile, RF mode. Note that when you specify values for all three settings, MediaConvert ignores the value of this setting in favor of the mode-specific settings. If you do use this setting instead of the mode-specific settings, choose None to leave out DRC signaling. Keep the default Film standard to set the profile to Dolby's film standard profile for all operating modes.
        public let dynamicRangeCompressionProfile: Ac3DynamicRangeCompressionProfile?
        /// Choose the Dolby Digital dynamic range control (DRC) profile that MediaConvert uses when encoding the metadata in the Dolby Digital stream for the RF operating mode. Related setting: When you use this setting, MediaConvert ignores any value you provide for Dynamic range compression profile. For information about the Dolby Digital DRC operating modes and profiles, see the Dynamic Range Control chapter of the Dolby Metadata Guide at https://developer.dolby.com/globalassets/professional/documents/dolby-metadata-guide.pdf.
        public let dynamicRangeCompressionRf: Ac3DynamicRangeCompressionRf?
        /// Applies a 120Hz lowpass filter to the LFE channel prior to encoding. Only valid with 3_2_LFE coding mode.
        public let lfeFilter: Ac3LfeFilter?
        /// When set to FOLLOW_INPUT, encoder metadata will be sourced from the DD, DD+, or DolbyE decoder that supplied this audio data. If audio was not supplied from one of these streams, then the static metadata settings will be used.
        public let metadataControl: Ac3MetadataControl?
        /// This value is always 48000. It represents the sample rate in Hz.
        public let sampleRate: Int?

        @inlinable
        public init(bitrate: Int? = nil, bitstreamMode: Ac3BitstreamMode? = nil, codingMode: Ac3CodingMode? = nil, dialnorm: Int? = nil, dynamicRangeCompressionLine: Ac3DynamicRangeCompressionLine? = nil, dynamicRangeCompressionProfile: Ac3DynamicRangeCompressionProfile? = nil, dynamicRangeCompressionRf: Ac3DynamicRangeCompressionRf? = nil, lfeFilter: Ac3LfeFilter? = nil, metadataControl: Ac3MetadataControl? = nil, sampleRate: Int? = nil) {
            self.bitrate = bitrate
            self.bitstreamMode = bitstreamMode
            self.codingMode = codingMode
            self.dialnorm = dialnorm
            self.dynamicRangeCompressionLine = dynamicRangeCompressionLine
            self.dynamicRangeCompressionProfile = dynamicRangeCompressionProfile
            self.dynamicRangeCompressionRf = dynamicRangeCompressionRf
            self.lfeFilter = lfeFilter
            self.metadataControl = metadataControl
            self.sampleRate = sampleRate
        }

        public func validate(name: String) throws {
            try self.validate(self.bitrate, name: "bitrate", parent: name, max: 640000)
            try self.validate(self.bitrate, name: "bitrate", parent: name, min: 64000)
            try self.validate(self.dialnorm, name: "dialnorm", parent: name, max: 31)
            try self.validate(self.dialnorm, name: "dialnorm", parent: name, min: 1)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, max: 48000)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, min: 48000)
        }

        private enum CodingKeys: String, CodingKey {
            case bitrate = "bitrate"
            case bitstreamMode = "bitstreamMode"
            case codingMode = "codingMode"
            case dialnorm = "dialnorm"
            case dynamicRangeCompressionLine = "dynamicRangeCompressionLine"
            case dynamicRangeCompressionProfile = "dynamicRangeCompressionProfile"
            case dynamicRangeCompressionRf = "dynamicRangeCompressionRf"
            case lfeFilter = "lfeFilter"
            case metadataControl = "metadataControl"
            case sampleRate = "sampleRate"
        }
    }

    public struct AccelerationSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify the conditions when the service will run your job with accelerated transcoding.
        public let mode: AccelerationMode?

        @inlinable
        public init(mode: AccelerationMode? = nil) {
            self.mode = mode
        }

        private enum CodingKeys: String, CodingKey {
            case mode = "mode"
        }
    }

    public struct AdvancedInputFilterSettings: AWSEncodableShape & AWSDecodableShape {
        /// Add texture and detail to areas of your input video content that were lost after applying the Advanced input filter. To adaptively add texture and reduce softness: Choose Enabled. To not add any texture: Keep the default value, Disabled. We recommend that you choose Disabled for input video content that doesn't have texture, including screen recordings, computer graphics, or cartoons.
        public let addTexture: AdvancedInputFilterAddTexture?
        /// Optionally specify the amount of sharpening to apply when you use the Advanced input filter. Sharpening adds contrast to the edges of your video content and can reduce softness. To apply no sharpening: Keep the default value, Off. To apply a minimal amount of sharpening choose Low, or for the maximum choose High.
        public let sharpening: AdvancedInputFilterSharpen?

        @inlinable
        public init(addTexture: AdvancedInputFilterAddTexture? = nil, sharpening: AdvancedInputFilterSharpen? = nil) {
            self.addTexture = addTexture
            self.sharpening = sharpening
        }

        private enum CodingKeys: String, CodingKey {
            case addTexture = "addTexture"
            case sharpening = "sharpening"
        }
    }

    public struct AiffSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify Bit depth, in bits per sample, to choose the encoding quality for this audio track.
        public let bitDepth: Int?
        /// Specify the number of channels in this output audio track. Valid values are 1 and even numbers up to 64. For example, 1, 2, 4, 6, and so on, up to 64.
        public let channels: Int?
        /// Sample rate in Hz.
        public let sampleRate: Int?

        @inlinable
        public init(bitDepth: Int? = nil, channels: Int? = nil, sampleRate: Int? = nil) {
            self.bitDepth = bitDepth
            self.channels = channels
            self.sampleRate = sampleRate
        }

        public func validate(name: String) throws {
            try self.validate(self.bitDepth, name: "bitDepth", parent: name, max: 24)
            try self.validate(self.bitDepth, name: "bitDepth", parent: name, min: 16)
            try self.validate(self.channels, name: "channels", parent: name, max: 64)
            try self.validate(self.channels, name: "channels", parent: name, min: 1)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, max: 192000)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, min: 8000)
        }

        private enum CodingKeys: String, CodingKey {
            case bitDepth = "bitDepth"
            case channels = "channels"
            case sampleRate = "sampleRate"
        }
    }

    public struct AllowedRenditionSize: AWSEncodableShape & AWSDecodableShape {
        /// Use Height to define the video resolution height, in pixels, for this rule.
        public let height: Int?
        /// Set to ENABLED to force a rendition to be included.
        public let required: RequiredFlag?
        /// Use Width to define the video resolution width, in pixels, for this rule.
        public let width: Int?

        @inlinable
        public init(height: Int? = nil, required: RequiredFlag? = nil, width: Int? = nil) {
            self.height = height
            self.required = required
            self.width = width
        }

        public func validate(name: String) throws {
            try self.validate(self.height, name: "height", parent: name, max: 8192)
            try self.validate(self.height, name: "height", parent: name, min: 32)
            try self.validate(self.width, name: "width", parent: name, max: 8192)
            try self.validate(self.width, name: "width", parent: name, min: 32)
        }

        private enum CodingKeys: String, CodingKey {
            case height = "height"
            case required = "required"
            case width = "width"
        }
    }

    public struct AncillarySourceSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify whether this set of input captions appears in your outputs in both 608 and 708 format. If you choose Upconvert, MediaConvert includes the captions data in two ways: it passes the 608 data through using the 608 compatibility bytes fields of the 708 wrapper, and it also translates the 608 data into 708.
        public let convert608To708: AncillaryConvert608To708?
        /// Specifies the 608 channel number in the ancillary data track from which to extract captions. Unused for passthrough.
        public let sourceAncillaryChannelNumber: Int?
        /// By default, the service terminates any unterminated captions at the end of each input. If you want the caption to continue onto your next input, disable this setting.
        public let terminateCaptions: AncillaryTerminateCaptions?

        @inlinable
        public init(convert608To708: AncillaryConvert608To708? = nil, sourceAncillaryChannelNumber: Int? = nil, terminateCaptions: AncillaryTerminateCaptions? = nil) {
            self.convert608To708 = convert608To708
            self.sourceAncillaryChannelNumber = sourceAncillaryChannelNumber
            self.terminateCaptions = terminateCaptions
        }

        public func validate(name: String) throws {
            try self.validate(self.sourceAncillaryChannelNumber, name: "sourceAncillaryChannelNumber", parent: name, max: 4)
            try self.validate(self.sourceAncillaryChannelNumber, name: "sourceAncillaryChannelNumber", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case convert608To708 = "convert608To708"
            case sourceAncillaryChannelNumber = "sourceAncillaryChannelNumber"
            case terminateCaptions = "terminateCaptions"
        }
    }

    public struct AssociateCertificateRequest: AWSEncodableShape {
        /// The ARN of the ACM certificate that you want to associate with your MediaConvert resource.
        public let arn: String?

        @inlinable
        public init(arn: String? = nil) {
            self.arn = arn
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "arn"
        }
    }

    public struct AssociateCertificateResponse: AWSDecodableShape {
        public init() {}
    }

    public struct AudioChannelTaggingSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify the QuickTime audio channel layout tags for the audio channels in this audio track. Enter channel layout tags in the same order as your output's audio channel order. For example, if your output audio track has a left and a right channel, enter Left (L) for the first channel and Right (R) for the second. If your output has multiple single-channel audio tracks, enter a single channel layout tag for each track.
        public let channelTag: AudioChannelTag?
        /// Specify the QuickTime audio channel layout tags for the audio channels in this audio track. Enter channel layout tags in the same order as your output's audio channel order. For example, if your output audio track has a left and a right channel, enter Left (L) for the first channel and Right (R) for the second. If your output has multiple single-channel audio tracks, enter a single channel layout tag for each track.
        public let channelTags: [AudioChannelTag]?

        @inlinable
        public init(channelTag: AudioChannelTag? = nil, channelTags: [AudioChannelTag]? = nil) {
            self.channelTag = channelTag
            self.channelTags = channelTags
        }

        private enum CodingKeys: String, CodingKey {
            case channelTag = "channelTag"
            case channelTags = "channelTags"
        }
    }

    public struct AudioCodecSettings: AWSEncodableShape & AWSDecodableShape {
        /// Required when you set Codec to the value AAC. The service accepts one of two mutually exclusive groups of AAC settings--VBR and CBR. To select one of these modes, set the value of Bitrate control mode to "VBR" or "CBR". In VBR mode, you control the audio quality with the setting VBR quality. In CBR mode, you use the setting Bitrate. Defaults and valid values depend on the rate control mode.
        public let aacSettings: AacSettings?
        /// Required when you set Codec to the value AC3.
        public let ac3Settings: Ac3Settings?
        /// Required when you set Codec to the value AIFF.
        public let aiffSettings: AiffSettings?
        /// Choose the audio codec for this output. Note that the option Dolby Digital passthrough applies only to Dolby Digital and Dolby Digital Plus audio inputs. Make sure that you choose a codec that's supported with your output container: https://docs.aws.amazon.com/mediaconvert/latest/ug/reference-codecs-containers.html#reference-codecs-containers-output-audio For audio-only outputs, make sure that both your input audio codec and your output audio codec are supported for audio-only workflows. For more information, see: https://docs.aws.amazon.com/mediaconvert/latest/ug/reference-codecs-containers-input.html#reference-codecs-containers-input-audio-only and https://docs.aws.amazon.com/mediaconvert/latest/ug/reference-codecs-containers.html#audio-only-output
        public let codec: AudioCodec?
        /// Required when you set Codec to the value EAC3_ATMOS.
        public let eac3AtmosSettings: Eac3AtmosSettings?
        /// Required when you set Codec to the value EAC3.
        public let eac3Settings: Eac3Settings?
        /// Required when you set Codec, under AudioDescriptions>CodecSettings, to the value FLAC.
        public let flacSettings: FlacSettings?
        /// Required when you set Codec to the value MP2.
        public let mp2Settings: Mp2Settings?
        /// Required when you set Codec, under AudioDescriptions>CodecSettings, to the value MP3.
        public let mp3Settings: Mp3Settings?
        /// Required when you set Codec, under AudioDescriptions>CodecSettings, to the value OPUS.
        public let opusSettings: OpusSettings?
        /// Required when you set Codec, under AudioDescriptions>CodecSettings, to the value Vorbis.
        public let vorbisSettings: VorbisSettings?
        /// Required when you set Codec to the value WAV.
        public let wavSettings: WavSettings?

        @inlinable
        public init(aacSettings: AacSettings? = nil, ac3Settings: Ac3Settings? = nil, aiffSettings: AiffSettings? = nil, codec: AudioCodec? = nil, eac3AtmosSettings: Eac3AtmosSettings? = nil, eac3Settings: Eac3Settings? = nil, flacSettings: FlacSettings? = nil, mp2Settings: Mp2Settings? = nil, mp3Settings: Mp3Settings? = nil, opusSettings: OpusSettings? = nil, vorbisSettings: VorbisSettings? = nil, wavSettings: WavSettings? = nil) {
            self.aacSettings = aacSettings
            self.ac3Settings = ac3Settings
            self.aiffSettings = aiffSettings
            self.codec = codec
            self.eac3AtmosSettings = eac3AtmosSettings
            self.eac3Settings = eac3Settings
            self.flacSettings = flacSettings
            self.mp2Settings = mp2Settings
            self.mp3Settings = mp3Settings
            self.opusSettings = opusSettings
            self.vorbisSettings = vorbisSettings
            self.wavSettings = wavSettings
        }

        public func validate(name: String) throws {
            try self.aacSettings?.validate(name: "\(name).aacSettings")
            try self.ac3Settings?.validate(name: "\(name).ac3Settings")
            try self.aiffSettings?.validate(name: "\(name).aiffSettings")
            try self.eac3AtmosSettings?.validate(name: "\(name).eac3AtmosSettings")
            try self.eac3Settings?.validate(name: "\(name).eac3Settings")
            try self.flacSettings?.validate(name: "\(name).flacSettings")
            try self.mp2Settings?.validate(name: "\(name).mp2Settings")
            try self.mp3Settings?.validate(name: "\(name).mp3Settings")
            try self.opusSettings?.validate(name: "\(name).opusSettings")
            try self.vorbisSettings?.validate(name: "\(name).vorbisSettings")
            try self.wavSettings?.validate(name: "\(name).wavSettings")
        }

        private enum CodingKeys: String, CodingKey {
            case aacSettings = "aacSettings"
            case ac3Settings = "ac3Settings"
            case aiffSettings = "aiffSettings"
            case codec = "codec"
            case eac3AtmosSettings = "eac3AtmosSettings"
            case eac3Settings = "eac3Settings"
            case flacSettings = "flacSettings"
            case mp2Settings = "mp2Settings"
            case mp3Settings = "mp3Settings"
            case opusSettings = "opusSettings"
            case vorbisSettings = "vorbisSettings"
            case wavSettings = "wavSettings"
        }
    }

    public struct AudioDescription: AWSEncodableShape & AWSDecodableShape {
        /// Specify the QuickTime audio channel layout tags for the audio channels in this audio track. When you don't specify a value, MediaConvert labels your track as Center (C) by default. To use Audio layout tagging, your output must be in a QuickTime (MOV) container and your audio codec must be AAC, WAV, or AIFF.
        public let audioChannelTaggingSettings: AudioChannelTaggingSettings?
        /// Advanced audio normalization settings. Ignore these settings unless you need to comply with a loudness standard.
        public let audioNormalizationSettings: AudioNormalizationSettings?
        /// Specifies which audio data to use from each input. In the simplest case, specify an "Audio Selector":#inputs-audio_selector by name based on its order within each input. For example if you specify "Audio Selector 3", then the third audio selector will be used from each input. If an input does not have an "Audio Selector 3", then the audio selector marked as "default" in that input will be used. If there is no audio selector marked as "default", silence will be inserted for the duration of that input. Alternatively, an "Audio Selector Group":#inputs-audio_selector_group name may be specified, with similar default/silence behavior. If no audio_source_name is specified, then "Audio Selector 1" will be chosen automatically.
        public let audioSourceName: String?
        /// Applies only if Follow Input Audio Type is unchecked (false). A number between 0 and 255. The following are defined in ISO-IEC 13818-1: 0 = Undefined, 1 = Clean Effects, 2 = Hearing Impaired, 3 = Visually Impaired Commentary, 4-255 = Reserved.
        public let audioType: Int?
        /// When set to FOLLOW_INPUT, if the input contains an ISO 639 audio_type, then that value is passed through to the output. If the input contains no ISO 639 audio_type, the value in Audio Type is included in the output. Otherwise the value in Audio Type is included in the output. Note that this field and audioType are both ignored if audioDescriptionBroadcasterMix is set to BROADCASTER_MIXED_AD.
        public let audioTypeControl: AudioTypeControl?
        /// Settings related to audio encoding. The settings in this group vary depending on the value that you choose for your audio codec.
        public let codecSettings: AudioCodecSettings?
        /// Specify the language for this audio output track. The service puts this language code into your output audio track when you set Language code control to Use configured. The service also uses your specified custom language code when you set Language code control to Follow input, but your input file doesn't specify a language code. For all outputs, you can use an ISO 639-2 or ISO 639-3 code. For streaming outputs, you can also use any other code in the full RFC-5646 specification. Streaming outputs are those that are in one of the following output groups: CMAF, DASH ISO, Apple HLS, or Microsoft Smooth Streaming.
        public let customLanguageCode: String?
        /// Indicates the language of the audio output track. The ISO 639 language specified in the 'Language Code' drop down will be used when 'Follow Input Language Code' is not selected or when 'Follow Input Language Code' is selected but there is no ISO 639 language code specified by the input.
        public let languageCode: LanguageCode?
        /// Specify which source for language code takes precedence for this audio track. When you choose Follow input, the service uses the language code from the input track if it's present. If there's no languge code on the input track, the service uses the code that you specify in the setting Language code. When you choose Use configured, the service uses the language code that you specify.
        public let languageCodeControl: AudioLanguageCodeControl?
        /// Advanced audio remixing settings.
        public let remixSettings: RemixSettings?
        /// Specify a label for this output audio stream. For example, "English", "Director commentary", or "track_2". For streaming outputs, MediaConvert passes this information into destination manifests for display on the end-viewer's player device. For outputs in other output groups, the service ignores this setting.
        public let streamName: String?

        @inlinable
        public init(audioChannelTaggingSettings: AudioChannelTaggingSettings? = nil, audioNormalizationSettings: AudioNormalizationSettings? = nil, audioSourceName: String? = nil, audioType: Int? = nil, audioTypeControl: AudioTypeControl? = nil, codecSettings: AudioCodecSettings? = nil, customLanguageCode: String? = nil, languageCode: LanguageCode? = nil, languageCodeControl: AudioLanguageCodeControl? = nil, remixSettings: RemixSettings? = nil, streamName: String? = nil) {
            self.audioChannelTaggingSettings = audioChannelTaggingSettings
            self.audioNormalizationSettings = audioNormalizationSettings
            self.audioSourceName = audioSourceName
            self.audioType = audioType
            self.audioTypeControl = audioTypeControl
            self.codecSettings = codecSettings
            self.customLanguageCode = customLanguageCode
            self.languageCode = languageCode
            self.languageCodeControl = languageCodeControl
            self.remixSettings = remixSettings
            self.streamName = streamName
        }

        public func validate(name: String) throws {
            try self.audioNormalizationSettings?.validate(name: "\(name).audioNormalizationSettings")
            try self.validate(self.audioSourceName, name: "audioSourceName", parent: name, max: 2048)
            try self.validate(self.audioType, name: "audioType", parent: name, max: 255)
            try self.validate(self.audioType, name: "audioType", parent: name, min: 0)
            try self.codecSettings?.validate(name: "\(name).codecSettings")
            try self.validate(self.customLanguageCode, name: "customLanguageCode", parent: name, pattern: "^[A-Za-z]{2,3}(-[A-Za-z0-9-]+)?$")
            try self.remixSettings?.validate(name: "\(name).remixSettings")
            try self.validate(self.streamName, name: "streamName", parent: name, pattern: "^[\\w\\s]*$")
        }

        private enum CodingKeys: String, CodingKey {
            case audioChannelTaggingSettings = "audioChannelTaggingSettings"
            case audioNormalizationSettings = "audioNormalizationSettings"
            case audioSourceName = "audioSourceName"
            case audioType = "audioType"
            case audioTypeControl = "audioTypeControl"
            case codecSettings = "codecSettings"
            case customLanguageCode = "customLanguageCode"
            case languageCode = "languageCode"
            case languageCodeControl = "languageCodeControl"
            case remixSettings = "remixSettings"
            case streamName = "streamName"
        }
    }

    public struct AudioNormalizationSettings: AWSEncodableShape & AWSDecodableShape {
        /// Choose one of the following audio normalization algorithms: ITU-R BS.1770-1: Ungated loudness. A measurement of ungated average loudness for an entire piece of content, suitable for measurement of short-form content under ATSC recommendation A/85. Supports up to 5.1 audio channels. ITU-R BS.1770-2: Gated loudness. A measurement of gated average loudness compliant with the requirements of EBU-R128. Supports up to 5.1 audio channels. ITU-R BS.1770-3: Modified peak. The same loudness measurement algorithm as 1770-2, with an updated true peak measurement. ITU-R BS.1770-4: Higher channel count. Allows for more audio channels than the other algorithms, including configurations such as 7.1.
        public let algorithm: AudioNormalizationAlgorithm?
        /// When enabled the output audio is corrected using the chosen algorithm. If disabled, the audio will be measured but not adjusted.
        public let algorithmControl: AudioNormalizationAlgorithmControl?
        /// Content measuring above this level will be corrected to the target level. Content measuring below this level will not be corrected.
        public let correctionGateLevel: Int?
        /// If set to LOG, log each output's audio track loudness to a CSV file.
        public let loudnessLogging: AudioNormalizationLoudnessLogging?
        /// If set to TRUE_PEAK, calculate and log the TruePeak for each output's audio track loudness.
        public let peakCalculation: AudioNormalizationPeakCalculation?
        /// When you use Audio normalization, optionally use this setting to specify a target loudness. If you don't specify a value here, the encoder chooses a value for you, based on the algorithm that you choose for Algorithm. If you choose algorithm 1770-1, the encoder will choose -24 LKFS; otherwise, the encoder will choose -23 LKFS.
        public let targetLkfs: Double?
        /// Specify the True-peak limiter threshold in decibels relative to full scale (dBFS). The peak inter-audio sample loudness in your output will be limited to the value that you specify, without affecting the overall target LKFS. Enter a value from 0 to -8. Leave blank to use the default value 0.
        public let truePeakLimiterThreshold: Double?

        @inlinable
        public init(algorithm: AudioNormalizationAlgorithm? = nil, algorithmControl: AudioNormalizationAlgorithmControl? = nil, correctionGateLevel: Int? = nil, loudnessLogging: AudioNormalizationLoudnessLogging? = nil, peakCalculation: AudioNormalizationPeakCalculation? = nil, targetLkfs: Double? = nil, truePeakLimiterThreshold: Double? = nil) {
            self.algorithm = algorithm
            self.algorithmControl = algorithmControl
            self.correctionGateLevel = correctionGateLevel
            self.loudnessLogging = loudnessLogging
            self.peakCalculation = peakCalculation
            self.targetLkfs = targetLkfs
            self.truePeakLimiterThreshold = truePeakLimiterThreshold
        }

        public func validate(name: String) throws {
            try self.validate(self.correctionGateLevel, name: "correctionGateLevel", parent: name, max: 0)
            try self.validate(self.correctionGateLevel, name: "correctionGateLevel", parent: name, min: -70)
        }

        private enum CodingKeys: String, CodingKey {
            case algorithm = "algorithm"
            case algorithmControl = "algorithmControl"
            case correctionGateLevel = "correctionGateLevel"
            case loudnessLogging = "loudnessLogging"
            case peakCalculation = "peakCalculation"
            case targetLkfs = "targetLkfs"
            case truePeakLimiterThreshold = "truePeakLimiterThreshold"
        }
    }

    public struct AudioProperties: AWSDecodableShape {
        /// The bit depth of the audio track.
        public let bitDepth: Int?
        /// The bit rate of the audio track, in bits per second.
        public let bitRate: Int64?
        /// The number of audio channels in the audio track.
        public let channels: Int?
        /// The frame rate of the video or audio track.
        public let frameRate: FrameRate?
        /// The language code of the audio track, in three character ISO 639-3 format.
        public let languageCode: String?
        /// The sample rate of the audio track.
        public let sampleRate: Int?

        @inlinable
        public init(bitDepth: Int? = nil, bitRate: Int64? = nil, channels: Int? = nil, frameRate: FrameRate? = nil, languageCode: String? = nil, sampleRate: Int? = nil) {
            self.bitDepth = bitDepth
            self.bitRate = bitRate
            self.channels = channels
            self.frameRate = frameRate
            self.languageCode = languageCode
            self.sampleRate = sampleRate
        }

        private enum CodingKeys: String, CodingKey {
            case bitDepth = "bitDepth"
            case bitRate = "bitRate"
            case channels = "channels"
            case frameRate = "frameRate"
            case languageCode = "languageCode"
            case sampleRate = "sampleRate"
        }
    }

    public struct AudioSelector: AWSEncodableShape & AWSDecodableShape {
        /// Apply audio timing corrections to help synchronize audio and video in your output. To apply timing corrections, your input must meet the following requirements: * Container: MP4, or MOV, with an accurate time-to-sample (STTS) table. * Audio track: AAC. Choose from the following audio timing correction settings: * Disabled (Default): Apply no correction. * Auto: Recommended for most inputs. MediaConvert analyzes the audio timing in your input and determines which correction setting to use, if needed. * Track: Adjust the duration of each audio frame by a constant amount to align the audio track length with STTS duration. Track-level correction does not affect pitch, and is recommended for tonal audio content such as music. * Frame: Adjust the duration of each audio frame by a variable amount to align audio frames with STTS timestamps. No corrections are made to already-aligned frames. Frame-level correction may affect the pitch of corrected frames, and is recommended for atonal audio content such as speech or percussion. * Force: Apply audio duration correction, either Track or Frame depending on your input, regardless of the accuracy of your input's STTS table. Your output audio and video may not be aligned or it may contain audio artifacts.
        public let audioDurationCorrection: AudioDurationCorrection?
        /// Selects a specific language code from within an audio source, using the ISO 639-2 or ISO 639-3 three-letter language code
        public let customLanguageCode: String?
        /// Enable this setting on one audio selector to set it as the default for the job. The service uses this default for outputs where it can't find the specified input audio. If you don't set a default, those outputs have no audio.
        public let defaultSelection: AudioDefaultSelection?
        /// Specify the S3, HTTP, or HTTPS URL for your external audio file input.
        public let externalAudioFileInput: String?
        /// Settings specific to audio sources in an HLS alternate rendition group. Specify the properties (renditionGroupId, renditionName or renditionLanguageCode) to identify the unique audio track among the alternative rendition groups present in the HLS manifest. If no unique track is found, or multiple tracks match the properties provided, the job fails. If no properties in hlsRenditionGroupSettings are specified, the default audio track within the video segment is chosen. If there is no audio within video segment, the alternative audio with DEFAULT=YES is chosen instead.
        public let hlsRenditionGroupSettings: HlsRenditionGroupSettings?
        /// Specify the language to select from your audio input. In the MediaConvert console choose from a list of languages. In your JSON job settings choose from an ISO 639-2 three-letter code listed at https://www.loc.gov/standards/iso639-2/php/code_list.php
        public let languageCode: LanguageCode?
        /// Specify a time delta, in milliseconds, to offset the audio from the input video.
        /// To specify no offset: Keep the default value, 0.
        /// To specify an offset: Enter an integer from -2147483648 to 2147483647
        public let offset: Int?
        /// Selects a specific PID from within an audio source (e.g. 257 selects PID 0x101).
        public let pids: [Int]?
        /// Use this setting for input streams that contain Dolby E, to have the service extract specific program data from the track. To select multiple programs, create multiple selectors with the same Track and different Program numbers. In the console, this setting is visible when you set Selector type to Track. Choose the program number from the dropdown list. If your input file has incorrect metadata, you can choose All channels instead of a program number to have the service ignore the program IDs and include all the programs in the track.
        public let programSelection: Int?
        /// Use these settings to reorder the audio channels of one input to match those of another input. This allows you to combine the two files into a single output, one after the other.
        public let remixSettings: RemixSettings?
        /// Specify how MediaConvert selects audio content within your input. The default is Track. PID: Select audio by specifying the Packet Identifier (PID) values for MPEG Transport Stream inputs. Use this when you know the exact PID values of your audio streams. Track: Default. Select audio by track number. This is the most common option and works with most input container formats. Language code: Select audio by language using ISO 639-2 or ISO 639-3 three-letter language codes. Use this when your source has embedded language metadata and you want to select tracks based on their language. HLS rendition group: Select audio from an HLS rendition group. Use this when your input is an HLS package with multiple audio renditions and you want to select specific rendition groups. All PCM: Select all uncompressed PCM audio tracks from your input automatically. This is useful when you want to include all PCM audio tracks without specifying individual track numbers.
        public let selectorType: AudioSelectorType?
        /// Identify a track from the input audio to include in this selector by entering the track index number. To include several tracks in a single audio selector, specify multiple tracks as follows. Using the console, enter a comma-separated list. For example, type "1,2,3" to include tracks 1 through 3.
        public let tracks: [Int]?

        @inlinable
        public init(audioDurationCorrection: AudioDurationCorrection? = nil, customLanguageCode: String? = nil, defaultSelection: AudioDefaultSelection? = nil, externalAudioFileInput: String? = nil, hlsRenditionGroupSettings: HlsRenditionGroupSettings? = nil, languageCode: LanguageCode? = nil, offset: Int? = nil, pids: [Int]? = nil, programSelection: Int? = nil, remixSettings: RemixSettings? = nil, selectorType: AudioSelectorType? = nil, tracks: [Int]? = nil) {
            self.audioDurationCorrection = audioDurationCorrection
            self.customLanguageCode = customLanguageCode
            self.defaultSelection = defaultSelection
            self.externalAudioFileInput = externalAudioFileInput
            self.hlsRenditionGroupSettings = hlsRenditionGroupSettings
            self.languageCode = languageCode
            self.offset = offset
            self.pids = pids
            self.programSelection = programSelection
            self.remixSettings = remixSettings
            self.selectorType = selectorType
            self.tracks = tracks
        }

        public func validate(name: String) throws {
            try self.validate(self.customLanguageCode, name: "customLanguageCode", parent: name, max: 3)
            try self.validate(self.customLanguageCode, name: "customLanguageCode", parent: name, min: 3)
            try self.validate(self.customLanguageCode, name: "customLanguageCode", parent: name, pattern: "^[A-Za-z]{3}$")
            try self.validate(self.externalAudioFileInput, name: "externalAudioFileInput", parent: name, pattern: "^s3://([^\\/]+\\/+)+((([^\\/]*)))|^https?://[^\\/].*[^&]$")
            try self.validate(self.offset, name: "offset", parent: name, max: 2147483647)
            try self.validate(self.offset, name: "offset", parent: name, min: -2147483648)
            try self.pids?.forEach {
                try validate($0, name: "pids[]", parent: name, max: 2147483647)
                try validate($0, name: "pids[]", parent: name, min: 1)
            }
            try self.validate(self.programSelection, name: "programSelection", parent: name, max: 8)
            try self.validate(self.programSelection, name: "programSelection", parent: name, min: 0)
            try self.remixSettings?.validate(name: "\(name).remixSettings")
            try self.tracks?.forEach {
                try validate($0, name: "tracks[]", parent: name, max: 2147483647)
                try validate($0, name: "tracks[]", parent: name, min: 1)
            }
        }

        private enum CodingKeys: String, CodingKey {
            case audioDurationCorrection = "audioDurationCorrection"
            case customLanguageCode = "customLanguageCode"
            case defaultSelection = "defaultSelection"
            case externalAudioFileInput = "externalAudioFileInput"
            case hlsRenditionGroupSettings = "hlsRenditionGroupSettings"
            case languageCode = "languageCode"
            case offset = "offset"
            case pids = "pids"
            case programSelection = "programSelection"
            case remixSettings = "remixSettings"
            case selectorType = "selectorType"
            case tracks = "tracks"
        }
    }

    public struct AudioSelectorGroup: AWSEncodableShape & AWSDecodableShape {
        /// Name of an Audio Selector within the same input to include in the group. Audio selector names are standardized, based on their order within the input (e.g., "Audio Selector 1"). The audio selector name parameter can be repeated to add any number of audio selectors to the group.
        public let audioSelectorNames: [String]?

        @inlinable
        public init(audioSelectorNames: [String]? = nil) {
            self.audioSelectorNames = audioSelectorNames
        }

        public func validate(name: String) throws {
            try self.audioSelectorNames?.forEach {
                try validate($0, name: "audioSelectorNames[]", parent: name, min: 1)
            }
        }

        private enum CodingKeys: String, CodingKey {
            case audioSelectorNames = "audioSelectorNames"
        }
    }

    public struct AutomatedAbrRule: AWSEncodableShape & AWSDecodableShape {
        /// When customer adds the allowed renditions rule for auto ABR ladder, they are required to add at leat one rendition to allowedRenditions list
        public let allowedRenditions: [AllowedRenditionSize]?
        /// When customer adds the force include renditions rule for auto ABR ladder, they are required to add at leat one rendition to forceIncludeRenditions list
        public let forceIncludeRenditions: [ForceIncludeRenditionSize]?
        /// Use Min bottom rendition size to specify a minimum size for the lowest resolution in your ABR stack. * The lowest resolution in your ABR stack will be equal to or greater than the value that you enter. For example: If you specify 640x360 the lowest resolution in your ABR stack will be equal to or greater than to 640x360. * If you specify a Min top rendition size rule, the value that you specify for Min bottom rendition size must be less than, or equal to, Min top rendition size.
        public let minBottomRenditionSize: MinBottomRenditionSize?
        /// Use Min top rendition size to specify a minimum size for the highest resolution in your ABR stack. * The highest resolution in your ABR stack will be equal to or greater than the value that you enter. For example: If you specify 1280x720 the highest resolution in your ABR stack will be equal to or greater than 1280x720. * If you specify a value for Max resolution, the value that you specify for Min top rendition size must be less than, or equal to, Max resolution.
        public let minTopRenditionSize: MinTopRenditionSize?
        /// Use Min top rendition size to specify a minimum size for the highest resolution in your ABR stack. * The highest resolution in your ABR stack will be equal to or greater than the value that you enter. For example: If you specify 1280x720 the highest resolution in your ABR stack will be equal to or greater than 1280x720. * If you specify a value for Max resolution, the value that you specify for Min top rendition size must be less than, or equal to, Max resolution. Use Min bottom rendition size to specify a minimum size for the lowest resolution in your ABR stack. * The lowest resolution in your ABR stack will be equal to or greater than the value that you enter. For example: If you specify 640x360 the lowest resolution in your ABR stack will be equal to or greater than to 640x360. * If you specify a Min top rendition size rule, the value that you specify for Min bottom rendition size must be less than, or equal to, Min top rendition size. Use Force include renditions to specify one or more resolutions to include your ABR stack. * (Recommended) To optimize automated ABR, specify as few resolutions as possible. * (Required) The number of resolutions that you specify must be equal to, or less than, the Max renditions setting. * If you specify a Min top rendition size rule, specify at least one resolution that is equal to, or greater than, Min top rendition size. * If you specify a Min bottom rendition size rule, only specify resolutions that are equal to, or greater than, Min bottom rendition size. * If you specify a Force include renditions rule, do not specify a separate rule for Allowed renditions. * Note: The ABR stack may include other resolutions that you do not specify here, depending on the Max renditions setting. Use Allowed renditions to specify a list of possible resolutions in your ABR stack. * (Required) The number of resolutions that you specify must be equal to, or greater than, the Max renditions setting. * MediaConvert will create an ABR stack exclusively from the list of resolutions that you specify. * Some resolutions in the Allowed renditions list may not be included, however you can force a resolution to be included by setting Required to ENABLED. * You must specify at least one resolution that is greater than or equal to any resolutions that you specify in Min top rendition size or Min bottom rendition size. * If you specify Allowed renditions, you must not specify a separate rule for Force include renditions.
        public let type: RuleType?

        @inlinable
        public init(allowedRenditions: [AllowedRenditionSize]? = nil, forceIncludeRenditions: [ForceIncludeRenditionSize]? = nil, minBottomRenditionSize: MinBottomRenditionSize? = nil, minTopRenditionSize: MinTopRenditionSize? = nil, type: RuleType? = nil) {
            self.allowedRenditions = allowedRenditions
            self.forceIncludeRenditions = forceIncludeRenditions
            self.minBottomRenditionSize = minBottomRenditionSize
            self.minTopRenditionSize = minTopRenditionSize
            self.type = type
        }

        public func validate(name: String) throws {
            try self.allowedRenditions?.forEach {
                try $0.validate(name: "\(name).allowedRenditions[]")
            }
            try self.forceIncludeRenditions?.forEach {
                try $0.validate(name: "\(name).forceIncludeRenditions[]")
            }
            try self.minBottomRenditionSize?.validate(name: "\(name).minBottomRenditionSize")
            try self.minTopRenditionSize?.validate(name: "\(name).minTopRenditionSize")
        }

        private enum CodingKeys: String, CodingKey {
            case allowedRenditions = "allowedRenditions"
            case forceIncludeRenditions = "forceIncludeRenditions"
            case minBottomRenditionSize = "minBottomRenditionSize"
            case minTopRenditionSize = "minTopRenditionSize"
            case type = "type"
        }
    }

    public struct AutomatedAbrSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify the maximum average bitrate for MediaConvert to use in your automated ABR stack. If you don't specify a value, MediaConvert uses 8,000,000 (8 mb/s) by default. The average bitrate of your highest-quality rendition will be equal to or below this value, depending on the quality, complexity, and resolution of your content. Note that the instantaneous maximum bitrate may vary above the value that you specify.
        public let maxAbrBitrate: Int?
        /// Optional. Specify the QVBR quality level to use for all renditions in your automated ABR stack. To have MediaConvert automatically determine the quality level: Leave blank. To manually specify a quality level: Enter a value from 1 to 10. MediaConvert will use a quality level up to the value that you specify, depending on your source. For more information about QVBR quality levels, see: https://docs.aws.amazon.com/mediaconvert/latest/ug/qvbr-guidelines.html
        public let maxQualityLevel: Double?
        /// Optional. The maximum number of renditions that MediaConvert will create in your automated ABR stack. The number of renditions is determined automatically, based on analysis of each job, but will never exceed this limit. When you set this to Auto in the console, which is equivalent to excluding it from your JSON job specification, MediaConvert defaults to a limit of 15.
        public let maxRenditions: Int?
        /// Specify the minimum average bitrate for MediaConvert to use in your automated ABR stack. If you don't specify a value, MediaConvert uses 600,000 (600 kb/s) by default. The average bitrate of your lowest-quality rendition will be near this value. Note that the instantaneous minimum bitrate may vary below the value that you specify.
        public let minAbrBitrate: Int?
        /// Optional. Use Automated ABR rules to specify restrictions for the rendition sizes MediaConvert will create in your ABR stack. You can use these rules if your ABR workflow has specific rendition size requirements, but you still want MediaConvert to optimize for video quality and overall file size.
        public let rules: [AutomatedAbrRule]?

        @inlinable
        public init(maxAbrBitrate: Int? = nil, maxQualityLevel: Double? = nil, maxRenditions: Int? = nil, minAbrBitrate: Int? = nil, rules: [AutomatedAbrRule]? = nil) {
            self.maxAbrBitrate = maxAbrBitrate
            self.maxQualityLevel = maxQualityLevel
            self.maxRenditions = maxRenditions
            self.minAbrBitrate = minAbrBitrate
            self.rules = rules
        }

        public func validate(name: String) throws {
            try self.validate(self.maxAbrBitrate, name: "maxAbrBitrate", parent: name, max: 100000000)
            try self.validate(self.maxAbrBitrate, name: "maxAbrBitrate", parent: name, min: 100000)
            try self.validate(self.maxRenditions, name: "maxRenditions", parent: name, max: 15)
            try self.validate(self.maxRenditions, name: "maxRenditions", parent: name, min: 3)
            try self.validate(self.minAbrBitrate, name: "minAbrBitrate", parent: name, max: 100000000)
            try self.validate(self.minAbrBitrate, name: "minAbrBitrate", parent: name, min: 100000)
            try self.rules?.forEach {
                try $0.validate(name: "\(name).rules[]")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case maxAbrBitrate = "maxAbrBitrate"
            case maxQualityLevel = "maxQualityLevel"
            case maxRenditions = "maxRenditions"
            case minAbrBitrate = "minAbrBitrate"
            case rules = "rules"
        }
    }

    public struct AutomatedEncodingSettings: AWSEncodableShape & AWSDecodableShape {
        /// Use automated ABR to have MediaConvert set up the renditions in your ABR package for you automatically, based on characteristics of your input video. This feature optimizes video quality while minimizing the overall size of your ABR package.
        public let abrSettings: AutomatedAbrSettings?

        @inlinable
        public init(abrSettings: AutomatedAbrSettings? = nil) {
            self.abrSettings = abrSettings
        }

        public func validate(name: String) throws {
            try self.abrSettings?.validate(name: "\(name).abrSettings")
        }

        private enum CodingKeys: String, CodingKey {
            case abrSettings = "abrSettings"
        }
    }

    public struct Av1QvbrSettings: AWSEncodableShape & AWSDecodableShape {
        /// Use this setting only when you set Rate control mode to QVBR. Specify the target quality level for this output. MediaConvert determines the right number of bits to use for each part of the video to maintain the video quality that you specify. When you keep the default value, AUTO, MediaConvert picks a quality level for you, based on characteristics of your input video. If you prefer to specify a quality level, specify a number from 1 through 10. Use higher numbers for greater quality. Level 10 results in nearly lossless compression. The quality level for most broadcast-quality transcodes is between 6 and 9. Optionally, to specify a value between whole numbers, also provide a value for the setting qvbrQualityLevelFineTune. For example, if you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33.
        public let qvbrQualityLevel: Int?
        /// Optional. Specify a value here to set the QVBR quality to a level that is between whole numbers. For example, if you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33. MediaConvert rounds your QVBR quality level to the nearest third of a whole number. For example, if you set qvbrQualityLevel to 7 and you set qvbrQualityLevelFineTune to .25, your actual QVBR quality level is 7.33.
        public let qvbrQualityLevelFineTune: Double?

        @inlinable
        public init(qvbrQualityLevel: Int? = nil, qvbrQualityLevelFineTune: Double? = nil) {
            self.qvbrQualityLevel = qvbrQualityLevel
            self.qvbrQualityLevelFineTune = qvbrQualityLevelFineTune
        }

        public func validate(name: String) throws {
            try self.validate(self.qvbrQualityLevel, name: "qvbrQualityLevel", parent: name, max: 10)
            try self.validate(self.qvbrQualityLevel, name: "qvbrQualityLevel", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case qvbrQualityLevel = "qvbrQualityLevel"
            case qvbrQualityLevelFineTune = "qvbrQualityLevelFineTune"
        }
    }

    public struct Av1Settings: AWSEncodableShape & AWSDecodableShape {
        /// Specify the strength of any adaptive quantization filters that you enable. The value that you choose here applies to Spatial adaptive quantization.
        public let adaptiveQuantization: Av1AdaptiveQuantization?
        /// Specify the Bit depth. You can choose 8-bit or 10-bit.
        public let bitDepth: Av1BitDepth?
        /// Film grain synthesis replaces film grain present in your content with similar quality synthesized AV1 film grain. We recommend that you choose Enabled to reduce the bandwidth of your QVBR quality level 5, 6, 7, or 8 outputs. For QVBR quality level 9 or 10 outputs we recommend that you keep the default value, Disabled. When you include Film grain synthesis, you cannot include the Noise reducer preprocessor.
        public let filmGrainSynthesis: Av1FilmGrainSynthesis?
        /// Use the Framerate setting to specify the frame rate for this output. If you want to keep the same frame rate as the input video, choose Follow source. If you want to do frame rate conversion, choose a frame rate from the dropdown list or choose Custom. The framerates shown in the dropdown list are decimal approximations of fractions. If you choose Custom, specify your frame rate as a fraction.
        public let framerateControl: Av1FramerateControl?
        /// Choose the method that you want MediaConvert to use when increasing or decreasing your video's frame rate. For numerically simple conversions, such as 60 fps to 30 fps: We recommend that you keep the default value, Drop duplicate. For numerically complex conversions, to avoid stutter: Choose Interpolate. This results in a smooth picture, but might introduce undesirable video artifacts. For complex frame rate conversions, especially if your source video has already been converted from its original cadence: Choose FrameFormer to do motion-compensated interpolation. FrameFormer uses the best conversion method frame by frame. Note that using FrameFormer increases the transcoding time and incurs a significant add-on cost. When you choose FrameFormer, your input video resolution must be at least 128x96. To create an output with the same number of frames as your input: Choose Maintain frame count. When you do, MediaConvert will not drop, interpolate, add, or otherwise change the frame count from your input to your output. Note that since the frame count is maintained, the duration of your output will become shorter at higher frame rates and longer at lower frame rates.
        public let framerateConversionAlgorithm: Av1FramerateConversionAlgorithm?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateDenominator to specify the denominator of this fraction. In this example, use 1001 for the value of FramerateDenominator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateDenominator: Int?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateNumerator to specify the numerator of this fraction. In this example, use 24000 for the value of FramerateNumerator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateNumerator: Int?
        /// Specify the GOP length (keyframe interval) in frames. With AV1, MediaConvert doesn't support GOP length in seconds. This value must be greater than zero and preferably equal to 1 + ((numberBFrames + 1) * x), where x is an integer value.
        public let gopSize: Double?
        /// Maximum bitrate in bits/second. For example, enter five megabits per second as 5000000. Required when Rate control mode is QVBR.
        public let maxBitrate: Int?
        /// Specify from the number of B-frames, in the range of 0-15. For AV1 encoding, we recommend using 7 or 15. Choose a larger number for a lower bitrate and smaller file size; choose a smaller number for better video quality.
        public let numberBFramesBetweenReferenceFrames: Int?
        /// Optionally choose one or more per frame metric reports to generate along with your output. You can use these metrics to analyze your video output according to one or more commonly used image quality metrics. You can specify per frame metrics for output groups or for individual outputs. When you do, MediaConvert writes a CSV (Comma-Separated Values) file to your S3 output destination, named after the output name and metric type. For example: videofile_PSNR.csv Jobs that generate per frame metrics will take longer to complete, depending on the resolution and complexity of your output. For example, some 4K jobs might take up to twice as long to complete. Note that when analyzing the video quality of your output, or when comparing the video quality of multiple different outputs, we generally also recommend a detailed visual review in a controlled environment. You can choose from the following per frame metrics: * PSNR: Peak Signal-to-Noise Ratio * SSIM: Structural Similarity Index Measure * MS_SSIM: Multi-Scale Similarity Index Measure * PSNR_HVS: Peak Signal-to-Noise Ratio, Human Visual System * VMAF: Video Multi-Method Assessment Fusion * QVBR: Quality-Defined Variable Bitrate. This option is only available when your output uses the QVBR rate control mode.
        public let perFrameMetrics: [FrameMetricType]?
        /// Settings for quality-defined variable bitrate encoding with the H.265 codec. Use these settings only when you set QVBR for Rate control mode.
        public let qvbrSettings: Av1QvbrSettings?
        /// 'With AV1 outputs, for rate control mode, MediaConvert supports only quality-defined variable bitrate (QVBR). You can''t use CBR or VBR.'
        public let rateControlMode: Av1RateControlMode?
        /// Specify the number of slices per picture. This value must be 1, 2, 4, 8, 16, or 32. For progressive pictures, this value must be less than or equal to the number of macroblock rows. For interlaced pictures, this value must be less than or equal to half the number of macroblock rows.
        public let slices: Int?
        /// Keep the default value, Enabled, to adjust quantization within each frame based on spatial variation of content complexity. When you enable this feature, the encoder uses fewer bits on areas that can sustain more distortion with no noticeable visual degradation and uses more bits on areas where any small distortion will be noticeable. For example, complex textured blocks are encoded with fewer bits and smooth textured blocks are encoded with more bits. Enabling this feature will almost always improve your video quality. Note, though, that this feature doesn't take into account where the viewer's attention is likely to be. If viewers are likely to be focusing their attention on a part of the screen with a lot of complex texture, you might choose to disable this feature. Related setting: When you enable spatial adaptive quantization, set the value for Adaptive quantization depending on your content. For homogeneous content, such as cartoons and video games, set it to Low. For content with a wider variety of textures, set it to High or Higher.
        public let spatialAdaptiveQuantization: Av1SpatialAdaptiveQuantization?

        @inlinable
        public init(adaptiveQuantization: Av1AdaptiveQuantization? = nil, bitDepth: Av1BitDepth? = nil, filmGrainSynthesis: Av1FilmGrainSynthesis? = nil, framerateControl: Av1FramerateControl? = nil, framerateConversionAlgorithm: Av1FramerateConversionAlgorithm? = nil, framerateDenominator: Int? = nil, framerateNumerator: Int? = nil, gopSize: Double? = nil, maxBitrate: Int? = nil, numberBFramesBetweenReferenceFrames: Int? = nil, perFrameMetrics: [FrameMetricType]? = nil, qvbrSettings: Av1QvbrSettings? = nil, rateControlMode: Av1RateControlMode? = nil, slices: Int? = nil, spatialAdaptiveQuantization: Av1SpatialAdaptiveQuantization? = nil) {
            self.adaptiveQuantization = adaptiveQuantization
            self.bitDepth = bitDepth
            self.filmGrainSynthesis = filmGrainSynthesis
            self.framerateControl = framerateControl
            self.framerateConversionAlgorithm = framerateConversionAlgorithm
            self.framerateDenominator = framerateDenominator
            self.framerateNumerator = framerateNumerator
            self.gopSize = gopSize
            self.maxBitrate = maxBitrate
            self.numberBFramesBetweenReferenceFrames = numberBFramesBetweenReferenceFrames
            self.perFrameMetrics = perFrameMetrics
            self.qvbrSettings = qvbrSettings
            self.rateControlMode = rateControlMode
            self.slices = slices
            self.spatialAdaptiveQuantization = spatialAdaptiveQuantization
        }

        public func validate(name: String) throws {
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, max: 2147483647)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, min: 1)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, max: 2147483647)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, min: 1)
            try self.validate(self.maxBitrate, name: "maxBitrate", parent: name, max: 1152000000)
            try self.validate(self.maxBitrate, name: "maxBitrate", parent: name, min: 1000)
            try self.validate(self.numberBFramesBetweenReferenceFrames, name: "numberBFramesBetweenReferenceFrames", parent: name, max: 15)
            try self.validate(self.numberBFramesBetweenReferenceFrames, name: "numberBFramesBetweenReferenceFrames", parent: name, min: 0)
            try self.qvbrSettings?.validate(name: "\(name).qvbrSettings")
            try self.validate(self.slices, name: "slices", parent: name, max: 32)
            try self.validate(self.slices, name: "slices", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case adaptiveQuantization = "adaptiveQuantization"
            case bitDepth = "bitDepth"
            case filmGrainSynthesis = "filmGrainSynthesis"
            case framerateControl = "framerateControl"
            case framerateConversionAlgorithm = "framerateConversionAlgorithm"
            case framerateDenominator = "framerateDenominator"
            case framerateNumerator = "framerateNumerator"
            case gopSize = "gopSize"
            case maxBitrate = "maxBitrate"
            case numberBFramesBetweenReferenceFrames = "numberBFramesBetweenReferenceFrames"
            case perFrameMetrics = "perFrameMetrics"
            case qvbrSettings = "qvbrSettings"
            case rateControlMode = "rateControlMode"
            case slices = "slices"
            case spatialAdaptiveQuantization = "spatialAdaptiveQuantization"
        }
    }

    public struct AvailBlanking: AWSEncodableShape & AWSDecodableShape {
        /// Blanking image to be used. Leave empty for solid black. Only bmp and png images are supported.
        public let availBlankingImage: String?

        @inlinable
        public init(availBlankingImage: String? = nil) {
            self.availBlankingImage = availBlankingImage
        }

        public func validate(name: String) throws {
            try self.validate(self.availBlankingImage, name: "availBlankingImage", parent: name, min: 14)
            try self.validate(self.availBlankingImage, name: "availBlankingImage", parent: name, pattern: "^((s3://(.*?)\\.(bmp|BMP|png|PNG))|(https?://(.*?)\\.(bmp|BMP|png|PNG)(\\?([^&=]+=[^&]+&)*[^&=]+=[^&]+)?))$")
        }

        private enum CodingKeys: String, CodingKey {
            case availBlankingImage = "availBlankingImage"
        }
    }

    public struct AvcIntraSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify the AVC-Intra class of your output. The AVC-Intra class selection determines the output video bit rate depending on the frame rate of the output. Outputs with higher class values have higher bitrates and improved image quality. Note that for Class 4K/2K, MediaConvert supports only 4:2:2 chroma subsampling.
        public let avcIntraClass: AvcIntraClass?
        /// Optional when you set AVC-Intra class to Class 4K/2K. When you set AVC-Intra class to a different value, this object isn't allowed.
        public let avcIntraUhdSettings: AvcIntraUhdSettings?
        /// If you are using the console, use the Framerate setting to specify the frame rate for this output. If you want to keep the same frame rate as the input video, choose Follow source. If you want to do frame rate conversion, choose a frame rate from the dropdown list or choose Custom. The framerates shown in the dropdown list are decimal approximations of fractions. If you choose Custom, specify your frame rate as a fraction.
        public let framerateControl: AvcIntraFramerateControl?
        /// Choose the method that you want MediaConvert to use when increasing or decreasing your video's frame rate. For numerically simple conversions, such as 60 fps to 30 fps: We recommend that you keep the default value, Drop duplicate. For numerically complex conversions, to avoid stutter: Choose Interpolate. This results in a smooth picture, but might introduce undesirable video artifacts. For complex frame rate conversions, especially if your source video has already been converted from its original cadence: Choose FrameFormer to do motion-compensated interpolation. FrameFormer uses the best conversion method frame by frame. Note that using FrameFormer increases the transcoding time and incurs a significant add-on cost. When you choose FrameFormer, your input video resolution must be at least 128x96. To create an output with the same number of frames as your input: Choose Maintain frame count. When you do, MediaConvert will not drop, interpolate, add, or otherwise change the frame count from your input to your output. Note that since the frame count is maintained, the duration of your output will become shorter at higher frame rates and longer at lower frame rates.
        public let framerateConversionAlgorithm: AvcIntraFramerateConversionAlgorithm?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateDenominator to specify the denominator of this fraction. In this example, use 1001 for the value of FramerateDenominator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateDenominator: Int?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateNumerator to specify the numerator of this fraction. In this example, use 24000 for the value of FramerateNumerator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateNumerator: Int?
        /// Choose the scan line type for the output. Keep the default value, Progressive to create a progressive output, regardless of the scan type of your input. Use Top field first or Bottom field first to create an output that's interlaced with the same field polarity throughout. Use Follow, default top or Follow, default bottom to produce outputs with the same field polarity as the source. For jobs that have multiple inputs, the output field polarity might change over the course of the output. Follow behavior depends on the input scan type. If the source is interlaced, the output will be interlaced with the same polarity as the source. If the source is progressive, the output will be interlaced with top field bottom field first, depending on which of the Follow options you choose.
        public let interlaceMode: AvcIntraInterlaceMode?
        /// Optionally choose one or more per frame metric reports to generate along with your output. You can use these metrics to analyze your video output according to one or more commonly used image quality metrics. You can specify per frame metrics for output groups or for individual outputs. When you do, MediaConvert writes a CSV (Comma-Separated Values) file to your S3 output destination, named after the output name and metric type. For example: videofile_PSNR.csv Jobs that generate per frame metrics will take longer to complete, depending on the resolution and complexity of your output. For example, some 4K jobs might take up to twice as long to complete. Note that when analyzing the video quality of your output, or when comparing the video quality of multiple different outputs, we generally also recommend a detailed visual review in a controlled environment. You can choose from the following per frame metrics: * PSNR: Peak Signal-to-Noise Ratio * SSIM: Structural Similarity Index Measure * MS_SSIM: Multi-Scale Similarity Index Measure * PSNR_HVS: Peak Signal-to-Noise Ratio, Human Visual System * VMAF: Video Multi-Method Assessment Fusion * QVBR: Quality-Defined Variable Bitrate. This option is only available when your output uses the QVBR rate control mode.
        public let perFrameMetrics: [FrameMetricType]?
        /// Use this setting for interlaced outputs, when your output frame rate is half of your input frame rate. In this situation, choose Optimized interlacing to create a better quality interlaced output. In this case, each progressive frame from the input corresponds to an interlaced field in the output. Keep the default value, Basic interlacing, for all other output frame rates. With basic interlacing, MediaConvert performs any frame rate conversion first and then interlaces the frames. When you choose Optimized interlacing and you set your output frame rate to a value that isn't suitable for optimized interlacing, MediaConvert automatically falls back to basic interlacing. Required settings: To use optimized interlacing, you must set Telecine to None or Soft. You can't use optimized interlacing for hard telecine outputs. You must also set Interlace mode to a value other than Progressive.
        public let scanTypeConversionMode: AvcIntraScanTypeConversionMode?
        /// Ignore this setting unless your input frame rate is 23.976 or 24 frames per second (fps). Enable slow PAL to create a 25 fps output. When you enable slow PAL, MediaConvert relabels the video frames to 25 fps and resamples your audio to keep it synchronized with the video. Note that enabling this setting will slightly reduce the duration of your video. Required settings: You must also set Framerate to 25.
        public let slowPal: AvcIntraSlowPal?
        /// When you do frame rate conversion from 23.976 frames per second (fps) to 29.97 fps, and your output scan type is interlaced, you can optionally enable hard telecine to create a smoother picture. When you keep the default value, None, MediaConvert does a standard frame rate conversion to 29.97 without doing anything with the field polarity to create a smoother picture.
        public let telecine: AvcIntraTelecine?

        @inlinable
        public init(avcIntraClass: AvcIntraClass? = nil, avcIntraUhdSettings: AvcIntraUhdSettings? = nil, framerateControl: AvcIntraFramerateControl? = nil, framerateConversionAlgorithm: AvcIntraFramerateConversionAlgorithm? = nil, framerateDenominator: Int? = nil, framerateNumerator: Int? = nil, interlaceMode: AvcIntraInterlaceMode? = nil, perFrameMetrics: [FrameMetricType]? = nil, scanTypeConversionMode: AvcIntraScanTypeConversionMode? = nil, slowPal: AvcIntraSlowPal? = nil, telecine: AvcIntraTelecine? = nil) {
            self.avcIntraClass = avcIntraClass
            self.avcIntraUhdSettings = avcIntraUhdSettings
            self.framerateControl = framerateControl
            self.framerateConversionAlgorithm = framerateConversionAlgorithm
            self.framerateDenominator = framerateDenominator
            self.framerateNumerator = framerateNumerator
            self.interlaceMode = interlaceMode
            self.perFrameMetrics = perFrameMetrics
            self.scanTypeConversionMode = scanTypeConversionMode
            self.slowPal = slowPal
            self.telecine = telecine
        }

        public func validate(name: String) throws {
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, max: 1001)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, min: 1)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, max: 60000)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, min: 24)
        }

        private enum CodingKeys: String, CodingKey {
            case avcIntraClass = "avcIntraClass"
            case avcIntraUhdSettings = "avcIntraUhdSettings"
            case framerateControl = "framerateControl"
            case framerateConversionAlgorithm = "framerateConversionAlgorithm"
            case framerateDenominator = "framerateDenominator"
            case framerateNumerator = "framerateNumerator"
            case interlaceMode = "interlaceMode"
            case perFrameMetrics = "perFrameMetrics"
            case scanTypeConversionMode = "scanTypeConversionMode"
            case slowPal = "slowPal"
            case telecine = "telecine"
        }
    }

    public struct AvcIntraUhdSettings: AWSEncodableShape & AWSDecodableShape {
        /// Optional. Use Quality tuning level to choose how many transcoding passes MediaConvert does with your video. When you choose Multi-pass, your video quality is better and your output bitrate is more accurate. That is, the actual bitrate of your output is closer to the target bitrate defined in the specification. When you choose Single-pass, your encoding time is faster. The default behavior is Single-pass.
        public let qualityTuningLevel: AvcIntraUhdQualityTuningLevel?

        @inlinable
        public init(qualityTuningLevel: AvcIntraUhdQualityTuningLevel? = nil) {
            self.qualityTuningLevel = qualityTuningLevel
        }

        private enum CodingKeys: String, CodingKey {
            case qualityTuningLevel = "qualityTuningLevel"
        }
    }

    public struct BandwidthReductionFilter: AWSEncodableShape & AWSDecodableShape {
        /// Optionally specify the level of sharpening to apply when you use the Bandwidth reduction filter. Sharpening adds contrast to the edges of your video content and can reduce softness. Keep the default value Off to apply no sharpening. Set Sharpening strength to Low to apply a minimal amount of sharpening, or High to apply a maximum amount of sharpening.
        public let sharpening: BandwidthReductionFilterSharpening?
        /// Specify the strength of the Bandwidth reduction filter. For most workflows, we recommend that you choose Auto to reduce the bandwidth of your output with little to no perceptual decrease in video quality. For high quality and high bitrate outputs, choose Low. For the most bandwidth reduction, choose High. We recommend that you choose High for low bitrate outputs. Note that High may incur a slight increase in the softness of your output.
        public let strength: BandwidthReductionFilterStrength?

        @inlinable
        public init(sharpening: BandwidthReductionFilterSharpening? = nil, strength: BandwidthReductionFilterStrength? = nil) {
            self.sharpening = sharpening
            self.strength = strength
        }

        private enum CodingKeys: String, CodingKey {
            case sharpening = "sharpening"
            case strength = "strength"
        }
    }

    public struct BurninDestinationSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify the alignment of your captions. If no explicit x_position is provided, setting alignment to centered will placethe captions at the bottom center of the output. Similarly, setting a left alignment willalign captions to the bottom left of the output. If x and y positions are given in conjunction with the alignment parameter, the font will be justified (either left or centered) relative to those coordinates.
        public let alignment: BurninSubtitleAlignment?
        /// Ignore this setting unless Style passthrough is set to Enabled and Font color set to Black, Yellow, Red, Green, Blue, or Hex. Use Apply font color for additional font color controls. When you choose White text only, or leave blank, your font color setting only applies to white text in your input captions. For example, if your font color setting is Yellow, and your input captions have red and white text, your output captions will have red and yellow text. When you choose ALL_TEXT, your font color setting applies to all of your output captions text.
        public let applyFontColor: BurninSubtitleApplyFontColor?
        /// Specify the color of the rectangle behind the captions. Leave background color blank and set Style passthrough to enabled to use the background color data from your input captions, if present.
        public let backgroundColor: BurninSubtitleBackgroundColor?
        /// Specify the opacity of the background rectangle. Enter a value from 0 to 255, where 0 is transparent and 255 is opaque. If Style passthrough is set to enabled, leave blank to pass through the background style information in your input captions to your output captions. If Style passthrough is set to disabled, leave blank to use a value of 0 and remove all backgrounds from your output captions.
        public let backgroundOpacity: Int?
        /// Specify the font that you want the service to use for your burn in captions when your input captions specify a font that MediaConvert doesn't support. When you set Fallback font to best match, or leave blank, MediaConvert uses a supported font that most closely matches the font that your input captions specify. When there are multiple unsupported fonts in your input captions, MediaConvert matches each font with the supported font that matches best. When you explicitly choose a replacement font, MediaConvert uses that font to replace all unsupported fonts from your input.
        public let fallbackFont: BurninSubtitleFallbackFont?
        /// Specify the color of the burned-in captions text. Leave Font color blank and set Style passthrough to enabled to use the font color data from your input captions, if present.
        public let fontColor: BurninSubtitleFontColor?
        /// Specify a bold TrueType font file to use when rendering your output captions. Enter an S3, HTTP, or HTTPS URL. When you do, you must also separately specify a regular, an italic, and a bold italic font file.
        public let fontFileBold: String?
        /// Specify a bold italic TrueType font file to use when rendering your output captions.
        /// Enter an S3, HTTP, or HTTPS URL.
        /// When you do, you must also separately specify a regular, a bold, and an italic font file.
        public let fontFileBoldItalic: String?
        /// Specify an italic TrueType font file to use when rendering your output captions. Enter an S3, HTTP, or HTTPS URL. When you do, you must also separately specify a regular, a bold, and a bold italic font file.
        public let fontFileItalic: String?
        /// Specify a regular TrueType font file to use when rendering your output captions. Enter an S3, HTTP, or HTTPS URL. When you do, you must also separately specify a bold, an italic, and a bold italic font file.
        public let fontFileRegular: String?
        /// Specify the opacity of the burned-in captions. 255 is opaque; 0 is transparent.
        public let fontOpacity: Int?
        /// Specify the Font resolution in DPI (dots per inch).
        public let fontResolution: Int?
        /// Set Font script to Automatically determined, or leave blank, to automatically determine the font script in your input captions. Otherwise, set to Simplified Chinese (HANS) or Traditional Chinese (HANT) if your input font script uses Simplified or Traditional Chinese.
        public let fontScript: FontScript?
        /// Specify the Font size in pixels. Must be a positive integer. Set to 0, or leave blank, for automatic font size.
        public let fontSize: Int?
        /// Ignore this setting unless your Font color is set to Hex. Enter either six or eight hexidecimal digits, representing red, green, and blue, with two optional extra digits for alpha. For example a value of 1122AABB is a red value of 0x11, a green value of 0x22, a blue value of 0xAA, and an alpha value of 0xBB.
        public let hexFontColor: String?
        /// Specify font outline color. Leave Outline color blank and set Style passthrough to enabled to use the font outline color data from your input captions, if present.
        public let outlineColor: BurninSubtitleOutlineColor?
        /// Specify the Outline size of the caption text, in pixels. Leave Outline size blank and set Style passthrough to enabled to use the outline size data from your input captions, if present.
        public let outlineSize: Int?
        /// Optionally remove any tts:rubyReserve attributes present in your input, that do   not have a tts:ruby attribute in the same element, from your output. Use if your vertical Japanese output captions have alignment issues. To remove ruby reserve attributes when present: Choose Enabled. To not remove any ruby reserve attributes: Keep the default value, Disabled.
        public let removeRubyReserveAttributes: RemoveRubyReserveAttributes?
        /// Specify the color of the shadow cast by the captions. Leave Shadow color blank and set Style passthrough to enabled to use the shadow color data from your input captions, if present.
        public let shadowColor: BurninSubtitleShadowColor?
        /// Specify the opacity of the shadow. Enter a value from 0 to 255, where 0 is transparent and 255 is opaque. If Style passthrough is set to Enabled, leave Shadow opacity blank to pass through the shadow style information in your input captions to your output captions. If Style passthrough is set to disabled, leave blank to use a value of 0 and remove all shadows from your output captions.
        public let shadowOpacity: Int?
        /// Specify the horizontal offset of the shadow, relative to the captions in pixels. A value of -2 would result in a shadow offset 2 pixels to the left.
        public let shadowXOffset: Int?
        /// Specify the vertical offset of the shadow relative to the captions in pixels. A value of -2 would result in a shadow offset 2 pixels above the text. Leave Shadow y-offset blank and set Style passthrough to enabled to use the shadow y-offset data from your input captions, if present.
        public let shadowYOffset: Int?
        /// To use the available style, color, and position information from your input captions: Set Style passthrough to Enabled. Note that MediaConvert uses default settings for any missing style or position information in your input captions To ignore the style and position information from your input captions and use default settings: Leave blank or keep the default value, Disabled. Default settings include white text with black outlining, bottom-center positioning, and automatic sizing. Whether you set Style passthrough to enabled or not, you can also choose to manually override any of the individual style and position settings. You can also override any fonts by manually specifying custom font files.
        public let stylePassthrough: BurnInSubtitleStylePassthrough?
        /// Specify whether the text spacing in your captions is set by the captions grid, or varies depending on letter width. Choose fixed grid to conform to the spacing specified in the captions file more accurately. Choose proportional to make the text easier to read for closed captions.
        public let teletextSpacing: BurninSubtitleTeletextSpacing?
        /// Specify the horizontal position of the captions, relative to the left side of the output in pixels. A value of 10 would result in the captions starting 10 pixels from the left of the output. If no explicit x_position is provided, the horizontal caption position will be determined by the alignment parameter.
        public let xPosition: Int?
        /// Specify the vertical position of the captions, relative to the top of the output in pixels. A value of 10 would result in the captions starting 10 pixels from the top of the output. If no explicit y_position is provided, the caption will be positioned towards the bottom of the output.
        public let yPosition: Int?

        @inlinable
        public init(alignment: BurninSubtitleAlignment? = nil, applyFontColor: BurninSubtitleApplyFontColor? = nil, backgroundColor: BurninSubtitleBackgroundColor? = nil, backgroundOpacity: Int? = nil, fallbackFont: BurninSubtitleFallbackFont? = nil, fontColor: BurninSubtitleFontColor? = nil, fontFileBold: String? = nil, fontFileBoldItalic: String? = nil, fontFileItalic: String? = nil, fontFileRegular: String? = nil, fontOpacity: Int? = nil, fontResolution: Int? = nil, fontScript: FontScript? = nil, fontSize: Int? = nil, hexFontColor: String? = nil, outlineColor: BurninSubtitleOutlineColor? = nil, outlineSize: Int? = nil, removeRubyReserveAttributes: RemoveRubyReserveAttributes? = nil, shadowColor: BurninSubtitleShadowColor? = nil, shadowOpacity: Int? = nil, shadowXOffset: Int? = nil, shadowYOffset: Int? = nil, stylePassthrough: BurnInSubtitleStylePassthrough? = nil, teletextSpacing: BurninSubtitleTeletextSpacing? = nil, xPosition: Int? = nil, yPosition: Int? = nil) {
            self.alignment = alignment
            self.applyFontColor = applyFontColor
            self.backgroundColor = backgroundColor
            self.backgroundOpacity = backgroundOpacity
            self.fallbackFont = fallbackFont
            self.fontColor = fontColor
            self.fontFileBold = fontFileBold
            self.fontFileBoldItalic = fontFileBoldItalic
            self.fontFileItalic = fontFileItalic
            self.fontFileRegular = fontFileRegular
            self.fontOpacity = fontOpacity
            self.fontResolution = fontResolution
            self.fontScript = fontScript
            self.fontSize = fontSize
            self.hexFontColor = hexFontColor
            self.outlineColor = outlineColor
            self.outlineSize = outlineSize
            self.removeRubyReserveAttributes = removeRubyReserveAttributes
            self.shadowColor = shadowColor
            self.shadowOpacity = shadowOpacity
            self.shadowXOffset = shadowXOffset
            self.shadowYOffset = shadowYOffset
            self.stylePassthrough = stylePassthrough
            self.teletextSpacing = teletextSpacing
            self.xPosition = xPosition
            self.yPosition = yPosition
        }

        public func validate(name: String) throws {
            try self.validate(self.backgroundOpacity, name: "backgroundOpacity", parent: name, max: 255)
            try self.validate(self.backgroundOpacity, name: "backgroundOpacity", parent: name, min: 0)
            try self.validate(self.fontFileBold, name: "fontFileBold", parent: name, pattern: "^((s3://(.*?)\\.(ttf))|(https?://(.*?)\\.(ttf)(\\?([^&=]+=[^&]+&)*[^&=]+=[^&]+)?))$")
            try self.validate(self.fontFileItalic, name: "fontFileItalic", parent: name, pattern: "^((s3://(.*?)\\.(ttf))|(https?://(.*?)\\.(ttf)(\\?([^&=]+=[^&]+&)*[^&=]+=[^&]+)?))$")
            try self.validate(self.fontFileRegular, name: "fontFileRegular", parent: name, pattern: "^((s3://(.*?)\\.(ttf))|(https?://(.*?)\\.(ttf)(\\?([^&=]+=[^&]+&)*[^&=]+=[^&]+)?))$")
            try self.validate(self.fontOpacity, name: "fontOpacity", parent: name, max: 255)
            try self.validate(self.fontOpacity, name: "fontOpacity", parent: name, min: 0)
            try self.validate(self.fontResolution, name: "fontResolution", parent: name, max: 600)
            try self.validate(self.fontResolution, name: "fontResolution", parent: name, min: 96)
            try self.validate(self.fontSize, name: "fontSize", parent: name, max: 96)
            try self.validate(self.fontSize, name: "fontSize", parent: name, min: 0)
            try self.validate(self.hexFontColor, name: "hexFontColor", parent: name, max: 8)
            try self.validate(self.hexFontColor, name: "hexFontColor", parent: name, min: 6)
            try self.validate(self.hexFontColor, name: "hexFontColor", parent: name, pattern: "^[0-9a-fA-F]{6}([0-9a-fA-F]{2})?$")
            try self.validate(self.outlineSize, name: "outlineSize", parent: name, max: 10)
            try self.validate(self.outlineSize, name: "outlineSize", parent: name, min: 0)
            try self.validate(self.shadowOpacity, name: "shadowOpacity", parent: name, max: 255)
            try self.validate(self.shadowOpacity, name: "shadowOpacity", parent: name, min: 0)
            try self.validate(self.shadowXOffset, name: "shadowXOffset", parent: name, max: 2147483647)
            try self.validate(self.shadowXOffset, name: "shadowXOffset", parent: name, min: -2147483648)
            try self.validate(self.shadowYOffset, name: "shadowYOffset", parent: name, max: 2147483647)
            try self.validate(self.shadowYOffset, name: "shadowYOffset", parent: name, min: -2147483648)
            try self.validate(self.xPosition, name: "xPosition", parent: name, max: 2147483647)
            try self.validate(self.xPosition, name: "xPosition", parent: name, min: 0)
            try self.validate(self.yPosition, name: "yPosition", parent: name, max: 2147483647)
            try self.validate(self.yPosition, name: "yPosition", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case alignment = "alignment"
            case applyFontColor = "applyFontColor"
            case backgroundColor = "backgroundColor"
            case backgroundOpacity = "backgroundOpacity"
            case fallbackFont = "fallbackFont"
            case fontColor = "fontColor"
            case fontFileBold = "fontFileBold"
            case fontFileBoldItalic = "fontFileBoldItalic"
            case fontFileItalic = "fontFileItalic"
            case fontFileRegular = "fontFileRegular"
            case fontOpacity = "fontOpacity"
            case fontResolution = "fontResolution"
            case fontScript = "fontScript"
            case fontSize = "fontSize"
            case hexFontColor = "hexFontColor"
            case outlineColor = "outlineColor"
            case outlineSize = "outlineSize"
            case removeRubyReserveAttributes = "removeRubyReserveAttributes"
            case shadowColor = "shadowColor"
            case shadowOpacity = "shadowOpacity"
            case shadowXOffset = "shadowXOffset"
            case shadowYOffset = "shadowYOffset"
            case stylePassthrough = "stylePassthrough"
            case teletextSpacing = "teletextSpacing"
            case xPosition = "xPosition"
            case yPosition = "yPosition"
        }
    }

    public struct CancelJobRequest: AWSEncodableShape {
        /// The Job ID of the job to be cancelled.
        public let id: String

        @inlinable
        public init(id: String) {
            self.id = id
        }

        public func encode(to encoder: Encoder) throws {
            let request = encoder.userInfo[.awsRequest]! as! RequestEncodingContainer
            _ = encoder.container(keyedBy: CodingKeys.self)
            request.encodePath(self.id, key: "Id")
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct CancelJobResponse: AWSDecodableShape {
        public init() {}
    }

    public struct CaptionDescription: AWSEncodableShape & AWSDecodableShape {
        /// Specifies which "Caption Selector":#inputs-caption_selector to use from each input when generating captions. The name should be of the format "Caption Selector ", which denotes that the Nth Caption Selector will be used from each input.
        public let captionSelectorName: String?
        /// Specify the language for this captions output track. For most captions output formats, the encoder puts this language information in the output captions metadata. If your output captions format is DVB-Sub or Burn in, the encoder uses this language information when automatically selecting the font script for rendering the captions text. For all outputs, you can use an ISO 639-2 or ISO 639-3 code. For streaming outputs, you can also use any other code in the full RFC-5646 specification. Streaming outputs are those that are in one of the following output groups: CMAF, DASH ISO, Apple HLS, or Microsoft Smooth Streaming.
        public let customLanguageCode: String?
        /// Settings related to one captions tab on the MediaConvert console. Usually, one captions tab corresponds to one output captions track. Depending on your output captions format, one tab might correspond to a set of output captions tracks. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/including-captions.html.
        public let destinationSettings: CaptionDestinationSettings?
        /// Specify the language of this captions output track. For most captions output formats, the encoder puts this language information in the output captions metadata. If your output captions format is DVB-Sub or Burn in, the encoder uses this language information to choose the font language for rendering the captions text.
        public let languageCode: LanguageCode?
        /// Specify a label for this set of output captions. For example, "English", "Director commentary", or "track_2". For streaming outputs, MediaConvert passes this information into destination manifests for display on the end-viewer's player device. For outputs in other output groups, the service ignores this setting.
        public let languageDescription: String?

        @inlinable
        public init(captionSelectorName: String? = nil, customLanguageCode: String? = nil, destinationSettings: CaptionDestinationSettings? = nil, languageCode: LanguageCode? = nil, languageDescription: String? = nil) {
            self.captionSelectorName = captionSelectorName
            self.customLanguageCode = customLanguageCode
            self.destinationSettings = destinationSettings
            self.languageCode = languageCode
            self.languageDescription = languageDescription
        }

        public func validate(name: String) throws {
            try self.validate(self.captionSelectorName, name: "captionSelectorName", parent: name, min: 1)
            try self.validate(self.customLanguageCode, name: "customLanguageCode", parent: name, pattern: "^[A-Za-z]{2,3}(-[A-Za-z-]+)?$")
            try self.destinationSettings?.validate(name: "\(name).destinationSettings")
        }

        private enum CodingKeys: String, CodingKey {
            case captionSelectorName = "captionSelectorName"
            case customLanguageCode = "customLanguageCode"
            case destinationSettings = "destinationSettings"
            case languageCode = "languageCode"
            case languageDescription = "languageDescription"
        }
    }

    public struct CaptionDescriptionPreset: AWSEncodableShape & AWSDecodableShape {
        /// Specify the language for this captions output track. For most captions output formats, the encoder puts this language information in the output captions metadata. If your output captions format is DVB-Sub or Burn in, the encoder uses this language information when automatically selecting the font script for rendering the captions text. For all outputs, you can use an ISO 639-2 or ISO 639-3 code. For streaming outputs, you can also use any other code in the full RFC-5646 specification. Streaming outputs are those that are in one of the following output groups: CMAF, DASH ISO, Apple HLS, or Microsoft Smooth Streaming.
        public let customLanguageCode: String?
        /// Settings related to one captions tab on the MediaConvert console. Usually, one captions tab corresponds to one output captions track. Depending on your output captions format, one tab might correspond to a set of output captions tracks. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/including-captions.html.
        public let destinationSettings: CaptionDestinationSettings?
        /// Specify the language of this captions output track. For most captions output formats, the encoder puts this language information in the output captions metadata. If your output captions format is DVB-Sub or Burn in, the encoder uses this language information to choose the font language for rendering the captions text.
        public let languageCode: LanguageCode?
        /// Specify a label for this set of output captions. For example, "English", "Director commentary", or "track_2". For streaming outputs, MediaConvert passes this information into destination manifests for display on the end-viewer's player device. For outputs in other output groups, the service ignores this setting.
        public let languageDescription: String?

        @inlinable
        public init(customLanguageCode: String? = nil, destinationSettings: CaptionDestinationSettings? = nil, languageCode: LanguageCode? = nil, languageDescription: String? = nil) {
            self.customLanguageCode = customLanguageCode
            self.destinationSettings = destinationSettings
            self.languageCode = languageCode
            self.languageDescription = languageDescription
        }

        public func validate(name: String) throws {
            try self.validate(self.customLanguageCode, name: "customLanguageCode", parent: name, pattern: "^[A-Za-z]{2,3}(-[A-Za-z-]+)?$")
            try self.destinationSettings?.validate(name: "\(name).destinationSettings")
        }

        private enum CodingKeys: String, CodingKey {
            case customLanguageCode = "customLanguageCode"
            case destinationSettings = "destinationSettings"
            case languageCode = "languageCode"
            case languageDescription = "languageDescription"
        }
    }

    public struct CaptionDestinationSettings: AWSEncodableShape & AWSDecodableShape {
        /// Burn-in is a captions delivery method, rather than a captions format. Burn-in writes the captions directly on your video frames, replacing pixels of video content with the captions. Set up burn-in captions in the same output as your video. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/burn-in-output-captions.html.
        public let burninDestinationSettings: BurninDestinationSettings?
        /// Specify the format for this set of captions on this output. The default format is embedded without SCTE-20. Note that your choice of video output container constrains your choice of output captions format. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/captions-support-tables.html. If you are using SCTE-20 and you want to create an output that complies with the SCTE-43 spec, choose SCTE-20 plus embedded. To create a non-compliant output where the embedded captions come first, choose Embedded plus SCTE-20.
        public let destinationType: CaptionDestinationType?
        /// Settings related to DVB-Sub captions. Set up DVB-Sub captions in the same output as your video. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/dvb-sub-output-captions.html.
        public let dvbSubDestinationSettings: DvbSubDestinationSettings?
        /// Settings related to CEA/EIA-608 and CEA/EIA-708 (also called embedded or ancillary) captions. Set up embedded captions in the same output as your video. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/embedded-output-captions.html.
        public let embeddedDestinationSettings: EmbeddedDestinationSettings?
        /// Settings related to IMSC captions. IMSC is a sidecar format that holds captions in a file that is separate from the video container. Set up sidecar captions in the same output group, but different output from your video. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/ttml-and-webvtt-output-captions.html.
        public let imscDestinationSettings: ImscDestinationSettings?
        /// Settings related to SCC captions. SCC is a sidecar format that holds captions in a file that is separate from the video container. Set up sidecar captions in the same output group, but different output from your video. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/scc-srt-output-captions.html.
        public let sccDestinationSettings: SccDestinationSettings?
        /// Settings related to SRT captions. SRT is a sidecar format that holds captions in a file that is separate from the video container. Set up sidecar captions in the same output group, but different output from your video.
        public let srtDestinationSettings: SrtDestinationSettings?
        /// Settings related to teletext captions. Set up teletext captions in the same output as your video. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/teletext-output-captions.html.
        public let teletextDestinationSettings: TeletextDestinationSettings?
        /// Settings related to TTML captions. TTML is a sidecar format that holds captions in a file that is separate from the video container. Set up sidecar captions in the same output group, but different output from your video. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/ttml-and-webvtt-output-captions.html.
        public let ttmlDestinationSettings: TtmlDestinationSettings?
        /// Settings related to WebVTT captions. WebVTT is a sidecar format that holds captions in a file that is separate from the video container. Set up sidecar captions in the same output group, but different output from your video. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/ttml-and-webvtt-output-captions.html.
        public let webvttDestinationSettings: WebvttDestinationSettings?

        @inlinable
        public init(burninDestinationSettings: BurninDestinationSettings? = nil, destinationType: CaptionDestinationType? = nil, dvbSubDestinationSettings: DvbSubDestinationSettings? = nil, embeddedDestinationSettings: EmbeddedDestinationSettings? = nil, imscDestinationSettings: ImscDestinationSettings? = nil, sccDestinationSettings: SccDestinationSettings? = nil, srtDestinationSettings: SrtDestinationSettings? = nil, teletextDestinationSettings: TeletextDestinationSettings? = nil, ttmlDestinationSettings: TtmlDestinationSettings? = nil, webvttDestinationSettings: WebvttDestinationSettings? = nil) {
            self.burninDestinationSettings = burninDestinationSettings
            self.destinationType = destinationType
            self.dvbSubDestinationSettings = dvbSubDestinationSettings
            self.embeddedDestinationSettings = embeddedDestinationSettings
            self.imscDestinationSettings = imscDestinationSettings
            self.sccDestinationSettings = sccDestinationSettings
            self.srtDestinationSettings = srtDestinationSettings
            self.teletextDestinationSettings = teletextDestinationSettings
            self.ttmlDestinationSettings = ttmlDestinationSettings
            self.webvttDestinationSettings = webvttDestinationSettings
        }

        public func validate(name: String) throws {
            try self.burninDestinationSettings?.validate(name: "\(name).burninDestinationSettings")
            try self.dvbSubDestinationSettings?.validate(name: "\(name).dvbSubDestinationSettings")
            try self.embeddedDestinationSettings?.validate(name: "\(name).embeddedDestinationSettings")
            try self.teletextDestinationSettings?.validate(name: "\(name).teletextDestinationSettings")
        }

        private enum CodingKeys: String, CodingKey {
            case burninDestinationSettings = "burninDestinationSettings"
            case destinationType = "destinationType"
            case dvbSubDestinationSettings = "dvbSubDestinationSettings"
            case embeddedDestinationSettings = "embeddedDestinationSettings"
            case imscDestinationSettings = "imscDestinationSettings"
            case sccDestinationSettings = "sccDestinationSettings"
            case srtDestinationSettings = "srtDestinationSettings"
            case teletextDestinationSettings = "teletextDestinationSettings"
            case ttmlDestinationSettings = "ttmlDestinationSettings"
            case webvttDestinationSettings = "webvttDestinationSettings"
        }
    }

    public struct CaptionSelector: AWSEncodableShape & AWSDecodableShape {
        /// The specific language to extract from source, using the ISO 639-2 or ISO 639-3 three-letter language code. If input is SCTE-27, complete this field and/or PID to select the caption language to extract. If input is DVB-Sub and output is Burn-in, complete this field and/or PID to select the caption language to extract. If input is DVB-Sub that is being passed through, omit this field (and PID field); there is no way to extract a specific language with pass-through captions.
        public let customLanguageCode: String?
        /// The specific language to extract from source. If input is SCTE-27, complete this field and/or PID to select the caption language to extract. If input is DVB-Sub and output is Burn-in, complete this field and/or PID to select the caption language to extract. If input is DVB-Sub that is being passed through, omit this field (and PID field); there is no way to extract a specific language with pass-through captions.
        public let languageCode: LanguageCode?
        /// If your input captions are SCC, TTML, STL, SMI, SRT, or IMSC in an xml file, specify the URI of the input captions source file. If your input captions are IMSC in an IMF package, use TrackSourceSettings instead of FileSoureSettings.
        public let sourceSettings: CaptionSourceSettings?

        @inlinable
        public init(customLanguageCode: String? = nil, languageCode: LanguageCode? = nil, sourceSettings: CaptionSourceSettings? = nil) {
            self.customLanguageCode = customLanguageCode
            self.languageCode = languageCode
            self.sourceSettings = sourceSettings
        }

        public func validate(name: String) throws {
            try self.validate(self.customLanguageCode, name: "customLanguageCode", parent: name, max: 3)
            try self.validate(self.customLanguageCode, name: "customLanguageCode", parent: name, min: 3)
            try self.validate(self.customLanguageCode, name: "customLanguageCode", parent: name, pattern: "^[A-Za-z]{3}$")
            try self.sourceSettings?.validate(name: "\(name).sourceSettings")
        }

        private enum CodingKeys: String, CodingKey {
            case customLanguageCode = "customLanguageCode"
            case languageCode = "languageCode"
            case sourceSettings = "sourceSettings"
        }
    }

    public struct CaptionSourceFramerate: AWSEncodableShape & AWSDecodableShape {
        /// Specify the denominator of the fraction that represents the frame rate for the setting Caption source frame rate. Use this setting along with the setting Framerate numerator.
        public let framerateDenominator: Int?
        /// Specify the numerator of the fraction that represents the frame rate for the setting Caption source frame rate. Use this setting along with the setting Framerate denominator.
        public let framerateNumerator: Int?

        @inlinable
        public init(framerateDenominator: Int? = nil, framerateNumerator: Int? = nil) {
            self.framerateDenominator = framerateDenominator
            self.framerateNumerator = framerateNumerator
        }

        public func validate(name: String) throws {
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, max: 1001)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, min: 1)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, max: 60000)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case framerateDenominator = "framerateDenominator"
            case framerateNumerator = "framerateNumerator"
        }
    }

    public struct CaptionSourceSettings: AWSEncodableShape & AWSDecodableShape {
        /// Settings for ancillary captions source.
        public let ancillarySourceSettings: AncillarySourceSettings?
        /// DVB Sub Source Settings
        public let dvbSubSourceSettings: DvbSubSourceSettings?
        /// Settings for embedded captions Source
        public let embeddedSourceSettings: EmbeddedSourceSettings?
        /// If your input captions are SCC, SMI, SRT, STL, TTML, WebVTT, or IMSC 1.1 in an xml file, specify the URI of the input caption source file. If your caption source is IMSC in an IMF package, use TrackSourceSettings instead of FileSoureSettings.
        public let fileSourceSettings: FileSourceSettings?
        /// Use Source to identify the format of your input captions. The service cannot auto-detect caption format.
        public let sourceType: CaptionSourceType?
        /// Settings specific to Teletext caption sources, including Page number.
        public let teletextSourceSettings: TeletextSourceSettings?
        /// Settings specific to caption sources that are specified by track number. Currently, this is only IMSC captions in an IMF package. If your caption source is IMSC 1.1 in a separate xml file, use FileSourceSettings instead of TrackSourceSettings.
        public let trackSourceSettings: TrackSourceSettings?
        /// Settings specific to WebVTT sources in HLS alternative rendition group. Specify the properties (renditionGroupId, renditionName or renditionLanguageCode) to identify the unique subtitle track among the alternative rendition groups present in the HLS manifest. If no unique track is found, or multiple tracks match the specified properties, the job fails. If there is only one subtitle track in the rendition group, the settings can be left empty and the default subtitle track will be chosen. If your caption source is a sidecar file, use FileSourceSettings instead of WebvttHlsSourceSettings.
        public let webvttHlsSourceSettings: WebvttHlsSourceSettings?

        @inlinable
        public init(ancillarySourceSettings: AncillarySourceSettings? = nil, dvbSubSourceSettings: DvbSubSourceSettings? = nil, embeddedSourceSettings: EmbeddedSourceSettings? = nil, fileSourceSettings: FileSourceSettings? = nil, sourceType: CaptionSourceType? = nil, teletextSourceSettings: TeletextSourceSettings? = nil, trackSourceSettings: TrackSourceSettings? = nil, webvttHlsSourceSettings: WebvttHlsSourceSettings? = nil) {
            self.ancillarySourceSettings = ancillarySourceSettings
            self.dvbSubSourceSettings = dvbSubSourceSettings
            self.embeddedSourceSettings = embeddedSourceSettings
            self.fileSourceSettings = fileSourceSettings
            self.sourceType = sourceType
            self.teletextSourceSettings = teletextSourceSettings
            self.trackSourceSettings = trackSourceSettings
            self.webvttHlsSourceSettings = webvttHlsSourceSettings
        }

        public func validate(name: String) throws {
            try self.ancillarySourceSettings?.validate(name: "\(name).ancillarySourceSettings")
            try self.dvbSubSourceSettings?.validate(name: "\(name).dvbSubSourceSettings")
            try self.embeddedSourceSettings?.validate(name: "\(name).embeddedSourceSettings")
            try self.fileSourceSettings?.validate(name: "\(name).fileSourceSettings")
            try self.teletextSourceSettings?.validate(name: "\(name).teletextSourceSettings")
            try self.trackSourceSettings?.validate(name: "\(name).trackSourceSettings")
        }

        private enum CodingKeys: String, CodingKey {
            case ancillarySourceSettings = "ancillarySourceSettings"
            case dvbSubSourceSettings = "dvbSubSourceSettings"
            case embeddedSourceSettings = "embeddedSourceSettings"
            case fileSourceSettings = "fileSourceSettings"
            case sourceType = "sourceType"
            case teletextSourceSettings = "teletextSourceSettings"
            case trackSourceSettings = "trackSourceSettings"
            case webvttHlsSourceSettings = "webvttHlsSourceSettings"
        }
    }

    public struct ChannelMapping: AWSEncodableShape & AWSDecodableShape {
        /// In your JSON job specification, include one child of OutputChannels for each audio channel that you want in your output. Each child should contain one instance of InputChannels or InputChannelsFineTune.
        public let outputChannels: [OutputChannelMapping]?

        @inlinable
        public init(outputChannels: [OutputChannelMapping]? = nil) {
            self.outputChannels = outputChannels
        }

        public func validate(name: String) throws {
            try self.outputChannels?.forEach {
                try $0.validate(name: "\(name).outputChannels[]")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case outputChannels = "outputChannels"
        }
    }

    public struct ClipLimits: AWSEncodableShape & AWSDecodableShape {
        /// Specify the Maximum RGB color sample range tolerance for your output. MediaConvert corrects any YUV values that, when converted to RGB, would be outside the upper tolerance that you specify. Enter an integer from 90 to 105 as an offset percentage to the maximum possible value. Leave blank to use the default value 100. When you specify a value for Maximum RGB tolerance, you must set Sample range conversion to Limited range clip.
        public let maximumRGBTolerance: Int?
        /// Specify the Maximum YUV color sample limit. MediaConvert conforms any pixels in your input above the value that you specify to typical limited range bounds. Enter an integer from 920 to 1023. Leave blank to use the default value 940. The value that you enter applies to 10-bit ranges. For 8-bit ranges, MediaConvert automatically scales this value down. When you specify a value for Maximum YUV, you must set Sample range conversion to Limited range clip.
        public let maximumYUV: Int?
        /// Specify the Minimum RGB color sample range tolerance for your output. MediaConvert corrects any YUV values that, when converted to RGB, would be outside the lower tolerance that you specify. Enter an integer from -5 to 10 as an offset percentage to the minimum possible value. Leave blank to use the default value 0. When you specify a value for Minimum RGB tolerance, you must set Sample range conversion to Limited range clip.
        public let minimumRGBTolerance: Int?
        /// Specify the Minimum YUV color sample limit. MediaConvert conforms any pixels in your input below the value that you specify to typical limited range bounds. Enter an integer from 0 to 128. Leave blank to use the default value 64. The value that you enter applies to 10-bit ranges. For 8-bit ranges, MediaConvert automatically scales this value down. When you specify a value for Minumum YUV, you must set Sample range conversion to Limited range clip.
        public let minimumYUV: Int?

        @inlinable
        public init(maximumRGBTolerance: Int? = nil, maximumYUV: Int? = nil, minimumRGBTolerance: Int? = nil, minimumYUV: Int? = nil) {
            self.maximumRGBTolerance = maximumRGBTolerance
            self.maximumYUV = maximumYUV
            self.minimumRGBTolerance = minimumRGBTolerance
            self.minimumYUV = minimumYUV
        }

        public func validate(name: String) throws {
            try self.validate(self.maximumRGBTolerance, name: "maximumRGBTolerance", parent: name, max: 105)
            try self.validate(self.maximumRGBTolerance, name: "maximumRGBTolerance", parent: name, min: 90)
            try self.validate(self.maximumYUV, name: "maximumYUV", parent: name, max: 1023)
            try self.validate(self.maximumYUV, name: "maximumYUV", parent: name, min: 920)
            try self.validate(self.minimumRGBTolerance, name: "minimumRGBTolerance", parent: name, max: 10)
            try self.validate(self.minimumRGBTolerance, name: "minimumRGBTolerance", parent: name, min: -5)
            try self.validate(self.minimumYUV, name: "minimumYUV", parent: name, max: 128)
            try self.validate(self.minimumYUV, name: "minimumYUV", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case maximumRGBTolerance = "maximumRGBTolerance"
            case maximumYUV = "maximumYUV"
            case minimumRGBTolerance = "minimumRGBTolerance"
            case minimumYUV = "minimumYUV"
        }
    }

    public struct CmafAdditionalManifest: AWSEncodableShape & AWSDecodableShape {
        /// Specify a name modifier that the service adds to the name of this manifest to make it different from the file names of the other main manifests in the output group. For example, say that the default main manifest for your HLS group is film-name.m3u8. If you enter "-no-premium" for this setting, then the file name the service generates for this top-level manifest is film-name-no-premium.m3u8. For HLS output groups, specify a manifestNameModifier that is different from the nameModifier of the output. The service uses the output name modifier to create unique names for the individual variant manifests.
        public let manifestNameModifier: String?
        /// Specify the outputs that you want this additional top-level manifest to reference.
        public let selectedOutputs: [String]?

        @inlinable
        public init(manifestNameModifier: String? = nil, selectedOutputs: [String]? = nil) {
            self.manifestNameModifier = manifestNameModifier
            self.selectedOutputs = selectedOutputs
        }

        public func validate(name: String) throws {
            try self.validate(self.manifestNameModifier, name: "manifestNameModifier", parent: name, min: 1)
            try self.selectedOutputs?.forEach {
                try validate($0, name: "selectedOutputs[]", parent: name, min: 1)
            }
        }

        private enum CodingKeys: String, CodingKey {
            case manifestNameModifier = "manifestNameModifier"
            case selectedOutputs = "selectedOutputs"
        }
    }

    public struct CmafEncryptionSettings: AWSEncodableShape & AWSDecodableShape {
        /// This is a 128-bit, 16-byte hex value represented by a 32-character text string. If this parameter is not set then the Initialization Vector will follow the segment number by default.
        public let constantInitializationVector: String?
        /// Specify the encryption scheme that you want the service to use when encrypting your CMAF segments. Choose AES-CBC subsample or AES_CTR.
        public let encryptionMethod: CmafEncryptionType?
        /// When you use DRM with CMAF outputs, choose whether the service writes the 128-bit encryption initialization vector in the HLS and DASH manifests.
        public let initializationVectorInManifest: CmafInitializationVectorInManifest?
        /// If your output group type is CMAF, use these settings when doing DRM encryption with a SPEKE-compliant key provider. If your output group type is HLS, DASH, or Microsoft Smooth, use the SpekeKeyProvider settings instead.
        public let spekeKeyProvider: SpekeKeyProviderCmaf?
        /// Use these settings to set up encryption with a static key provider.
        public let staticKeyProvider: StaticKeyProvider?
        /// Specify whether your DRM encryption key is static or from a key provider that follows the SPEKE standard. For more information about SPEKE, see https://docs.aws.amazon.com/speke/latest/documentation/what-is-speke.html.
        public let type: CmafKeyProviderType?

        @inlinable
        public init(constantInitializationVector: String? = nil, encryptionMethod: CmafEncryptionType? = nil, initializationVectorInManifest: CmafInitializationVectorInManifest? = nil, spekeKeyProvider: SpekeKeyProviderCmaf? = nil, staticKeyProvider: StaticKeyProvider? = nil, type: CmafKeyProviderType? = nil) {
            self.constantInitializationVector = constantInitializationVector
            self.encryptionMethod = encryptionMethod
            self.initializationVectorInManifest = initializationVectorInManifest
            self.spekeKeyProvider = spekeKeyProvider
            self.staticKeyProvider = staticKeyProvider
            self.type = type
        }

        public func validate(name: String) throws {
            try self.validate(self.constantInitializationVector, name: "constantInitializationVector", parent: name, max: 32)
            try self.validate(self.constantInitializationVector, name: "constantInitializationVector", parent: name, min: 32)
            try self.validate(self.constantInitializationVector, name: "constantInitializationVector", parent: name, pattern: "^[0-9a-fA-F]{32}$")
            try self.spekeKeyProvider?.validate(name: "\(name).spekeKeyProvider")
            try self.staticKeyProvider?.validate(name: "\(name).staticKeyProvider")
        }

        private enum CodingKeys: String, CodingKey {
            case constantInitializationVector = "constantInitializationVector"
            case encryptionMethod = "encryptionMethod"
            case initializationVectorInManifest = "initializationVectorInManifest"
            case spekeKeyProvider = "spekeKeyProvider"
            case staticKeyProvider = "staticKeyProvider"
            case type = "type"
        }
    }

    public struct CmafGroupSettings: AWSEncodableShape & AWSDecodableShape {
        /// By default, the service creates one top-level .m3u8 HLS manifest and one top -level .mpd DASH manifest for each CMAF output group in your job. These default manifests reference every output in the output group. To create additional top-level manifests that reference a subset of the outputs in the output group, specify a list of them here. For each additional manifest that you specify, the service creates one HLS manifest and one DASH manifest.
        public let additionalManifests: [CmafAdditionalManifest]?
        /// A partial URI prefix that will be put in the manifest file at the top level BaseURL element. Can be used if streams are delivered from a different URL than the manifest file.
        public let baseUrl: String?
        /// Disable this setting only when your workflow requires the #EXT-X-ALLOW-CACHE:no tag. Otherwise, keep the default value Enabled and control caching in your video distribution set up. For example, use the Cache-Control http header.
        public let clientCache: CmafClientCache?
        /// Specification to use (RFC-6381 or the default RFC-4281) during m3u8 playlist generation.
        public let codecSpecification: CmafCodecSpecification?
        /// Specify whether MediaConvert generates I-frame only video segments for DASH trick play, also known as trick mode. When specified, the I-frame only video segments are included within an additional AdaptationSet in your DASH output manifest. To generate I-frame only video segments: Enter a name as a text string, up to 256 character long. This name is appended to the end of this output group's base filename, that you specify as part of your destination URI, and used for the I-frame only video segment files. You may also include format identifiers. For more information, see: https://docs.aws.amazon.com/mediaconvert/latest/ug/using-variables-in-your-job-settings.html#using-settings-variables-with-streaming-outputs To not generate I-frame only video segments: Leave blank.
        public let dashIFrameTrickPlayNameModifier: String?
        /// Specify how MediaConvert writes SegmentTimeline in your output DASH manifest. To write a SegmentTimeline in each video Representation: Keep the default value, Basic. To write a common SegmentTimeline in the video AdaptationSet: Choose Compact. Note that MediaConvert will still write a SegmentTimeline in any Representation that does not share a common timeline. To write a video AdaptationSet for each different output framerate, and a common SegmentTimeline in each AdaptationSet: Choose Distinct.
        public let dashManifestStyle: DashManifestStyle?
        /// Use Destination to specify the S3 output location and the output filename base. Destination accepts format identifiers. If you do not specify the base filename in the URI, the service will use the filename of the input file. If your job has multiple inputs, the service uses the filename of the first input file.
        public let destination: String?
        /// Settings associated with the destination. Will vary based on the type of destination
        public let destinationSettings: DestinationSettings?
        /// DRM settings.
        public let encryption: CmafEncryptionSettings?
        /// Specify the length, in whole seconds, of the mp4 fragments. When you don't specify a value, MediaConvert defaults to 2. Related setting: Use Fragment length control to specify whether the encoder enforces this value strictly.
        public let fragmentLength: Int?
        /// Specify whether MediaConvert generates images for trick play. Keep the default value, None, to not generate any images. Choose Thumbnail to generate tiled thumbnails. Choose Thumbnail and full frame to generate tiled thumbnails and full-resolution images of single frames. When you enable Write HLS manifest, MediaConvert creates a child manifest for each set of images that you generate and adds corresponding entries to the parent manifest. When you enable Write DASH manifest, MediaConvert adds an entry in the .mpd manifest for each set of images that you generate. A common application for these images is Roku trick mode. The thumbnails and full-frame images that MediaConvert creates with this feature are compatible with this Roku specification: https://developer.roku.com/docs/developer-program/media-playback/trick-mode/hls-and-dash.md
        public let imageBasedTrickPlay: CmafImageBasedTrickPlay?
        /// Tile and thumbnail settings applicable when imageBasedTrickPlay is ADVANCED
        public let imageBasedTrickPlaySettings: CmafImageBasedTrickPlaySettings?
        /// When set to GZIP, compresses HLS playlist.
        public let manifestCompression: CmafManifestCompression?
        /// Indicates whether the output manifest should use floating point values for segment duration.
        public let manifestDurationFormat: CmafManifestDurationFormat?
        /// Minimum time of initially buffered media that is needed to ensure smooth playout.
        public let minBufferTime: Int?
        /// Keep this setting at the default value of 0, unless you are troubleshooting a problem with how devices play back the end of your video asset. If you know that player devices are hanging on the final segment of your video because the length of your final segment is too short, use this setting to specify a minimum final segment length, in seconds. Choose a value that is greater than or equal to 1 and less than your segment length. When you specify a value for this setting, the encoder will combine any final segment that is shorter than the length that you specify with the previous segment. For example, your segment length is 3 seconds and your final segment is .5 seconds without a minimum final segment length; when you set the minimum final segment length to 1, your final segment is 3.5 seconds.
        public let minFinalSegmentLength: Double?
        /// Specify how the value for bandwidth is determined for each video Representation in your output MPD manifest. We recommend that you choose a MPD manifest bandwidth type that is compatible with your downstream player configuration. Max: Use the same value that you specify for Max bitrate in the video output, in bits per second. Average: Use the calculated average bitrate of the encoded video output, in bits per second.
        public let mpdManifestBandwidthType: CmafMpdManifestBandwidthType?
        /// Specify whether your DASH profile is on-demand or main. When you choose Main profile, the service signals urn:mpeg:dash:profile:isoff-main:2011 in your .mpd DASH manifest. When you choose On-demand, the service signals urn:mpeg:dash:profile:isoff-on-demand:2011 in your .mpd. When you choose On-demand, you must also set the output group setting Segment control to Single file.
        public let mpdProfile: CmafMpdProfile?
        /// Use this setting only when your output video stream has B-frames, which causes the initial presentation time stamp (PTS) to be offset from the initial decode time stamp (DTS). Specify how MediaConvert handles PTS when writing time stamps in output DASH manifests. Choose Match initial PTS when you want MediaConvert to use the initial PTS as the first time stamp in the manifest. Choose Zero-based to have MediaConvert ignore the initial PTS in the video stream and instead write the initial time stamp as zero in the manifest. For outputs that don't have B-frames, the time stamps in your DASH manifests start at zero regardless of your choice here.
        public let ptsOffsetHandlingForBFrames: CmafPtsOffsetHandlingForBFrames?
        /// When set to SINGLE_FILE, a single output file is generated, which is internally segmented using the Fragment Length and Segment Length. When set to SEGMENTED_FILES, separate segment files will be created.
        public let segmentControl: CmafSegmentControl?
        /// Specify the length, in whole seconds, of each segment. When you don't specify a value, MediaConvert defaults to 10. Related settings: Use Segment length control to specify whether the encoder enforces this value strictly. Use Segment control to specify whether MediaConvert creates separate segment files or one content file that has metadata to mark the segment boundaries.
        public let segmentLength: Int?
        /// Specify how you want MediaConvert to determine segment lengths in this output group. To use the exact value that you specify under Segment length: Choose Exact. Note that this might result in additional I-frames in the output GOP. To create segment lengths that are a multiple of the GOP: Choose Multiple of GOP. MediaConvert will round up the segment lengths to match the next GOP boundary. To have MediaConvert automatically determine a segment duration that is a multiple of both the audio packets and the frame rates: Choose Match. When you do, also specify a target segment duration under Segment length. This is useful for some ad-insertion or segment replacement workflows. Note that Match has the following requirements: - Output containers: Include at least one video output and at least one audio output. Audio-only outputs are not supported. - Output frame rate: Follow source is not supported. - Multiple output frame rates: When you specify multiple outputs, we recommend they share a similar frame rate (as in X/3, X/2, X, or 2X). For example: 5, 15, 30 and 60. Or: 25 and 50. (Outputs must share an integer multiple.) - Output audio codec: Specify Advanced Audio Coding (AAC). - Output sample rate: Choose 48kHz.
        public let segmentLengthControl: CmafSegmentLengthControl?
        /// Include or exclude RESOLUTION attribute for video in EXT-X-STREAM-INF tag of variant manifest.
        public let streamInfResolution: CmafStreamInfResolution?
        /// When set to LEGACY, the segment target duration is always rounded up to the nearest integer value above its current value in seconds. When set to SPEC\\_COMPLIANT, the segment target duration is rounded up to the nearest integer value if fraction seconds are greater than or equal to 0.5 (>= 0.5) and rounded down if less than 0.5 (< 0.5). You may need to use LEGACY if your client needs to ensure that the target duration is always longer than the actual duration of the segment. Some older players may experience interrupted playback when the actual duration of a track in a segment is longer than the target duration.
        public let targetDurationCompatibilityMode: CmafTargetDurationCompatibilityMode?
        /// Specify the video sample composition time offset mode in the output fMP4 TRUN box. For wider player compatibility, set Video composition offsets to Unsigned or leave blank. The earliest presentation time may be greater than zero, and sample composition time offsets will increment using unsigned integers. For strict fMP4 video and audio timing, set Video composition offsets to Signed. The earliest presentation time will be equal to zero, and sample composition time offsets will increment using signed integers.
        public let videoCompositionOffsets: CmafVideoCompositionOffsets?
        /// When set to ENABLED, a DASH MPD manifest will be generated for this output.
        public let writeDashManifest: CmafWriteDASHManifest?
        /// When set to ENABLED, an Apple HLS manifest will be generated for this output.
        public let writeHlsManifest: CmafWriteHLSManifest?
        /// When you enable Precise segment duration in DASH manifests, your DASH manifest shows precise segment durations. The segment duration information appears inside the SegmentTimeline element, inside SegmentTemplate at the Representation level. When this feature isn't enabled, the segment durations in your DASH manifest are approximate. The segment duration information appears in the duration attribute of the SegmentTemplate element.
        public let writeSegmentTimelineInRepresentation: CmafWriteSegmentTimelineInRepresentation?

        @inlinable
        public init(additionalManifests: [CmafAdditionalManifest]? = nil, baseUrl: String? = nil, clientCache: CmafClientCache? = nil, codecSpecification: CmafCodecSpecification? = nil, dashIFrameTrickPlayNameModifier: String? = nil, dashManifestStyle: DashManifestStyle? = nil, destination: String? = nil, destinationSettings: DestinationSettings? = nil, encryption: CmafEncryptionSettings? = nil, fragmentLength: Int? = nil, imageBasedTrickPlay: CmafImageBasedTrickPlay? = nil, imageBasedTrickPlaySettings: CmafImageBasedTrickPlaySettings? = nil, manifestCompression: CmafManifestCompression? = nil, manifestDurationFormat: CmafManifestDurationFormat? = nil, minBufferTime: Int? = nil, minFinalSegmentLength: Double? = nil, mpdManifestBandwidthType: CmafMpdManifestBandwidthType? = nil, mpdProfile: CmafMpdProfile? = nil, ptsOffsetHandlingForBFrames: CmafPtsOffsetHandlingForBFrames? = nil, segmentControl: CmafSegmentControl? = nil, segmentLength: Int? = nil, segmentLengthControl: CmafSegmentLengthControl? = nil, streamInfResolution: CmafStreamInfResolution? = nil, targetDurationCompatibilityMode: CmafTargetDurationCompatibilityMode? = nil, videoCompositionOffsets: CmafVideoCompositionOffsets? = nil, writeDashManifest: CmafWriteDASHManifest? = nil, writeHlsManifest: CmafWriteHLSManifest? = nil, writeSegmentTimelineInRepresentation: CmafWriteSegmentTimelineInRepresentation? = nil) {
            self.additionalManifests = additionalManifests
            self.baseUrl = baseUrl
            self.clientCache = clientCache
            self.codecSpecification = codecSpecification
            self.dashIFrameTrickPlayNameModifier = dashIFrameTrickPlayNameModifier
            self.dashManifestStyle = dashManifestStyle
            self.destination = destination
            self.destinationSettings = destinationSettings
            self.encryption = encryption
            self.fragmentLength = fragmentLength
            self.imageBasedTrickPlay = imageBasedTrickPlay
            self.imageBasedTrickPlaySettings = imageBasedTrickPlaySettings
            self.manifestCompression = manifestCompression
            self.manifestDurationFormat = manifestDurationFormat
            self.minBufferTime = minBufferTime
            self.minFinalSegmentLength = minFinalSegmentLength
            self.mpdManifestBandwidthType = mpdManifestBandwidthType
            self.mpdProfile = mpdProfile
            self.ptsOffsetHandlingForBFrames = ptsOffsetHandlingForBFrames
            self.segmentControl = segmentControl
            self.segmentLength = segmentLength
            self.segmentLengthControl = segmentLengthControl
            self.streamInfResolution = streamInfResolution
            self.targetDurationCompatibilityMode = targetDurationCompatibilityMode
            self.videoCompositionOffsets = videoCompositionOffsets
            self.writeDashManifest = writeDashManifest
            self.writeHlsManifest = writeHlsManifest
            self.writeSegmentTimelineInRepresentation = writeSegmentTimelineInRepresentation
        }

        public func validate(name: String) throws {
            try self.additionalManifests?.forEach {
                try $0.validate(name: "\(name).additionalManifests[]")
            }
            try self.validate(self.dashIFrameTrickPlayNameModifier, name: "dashIFrameTrickPlayNameModifier", parent: name, max: 256)
            try self.validate(self.dashIFrameTrickPlayNameModifier, name: "dashIFrameTrickPlayNameModifier", parent: name, min: 1)
            try self.validate(self.destination, name: "destination", parent: name, pattern: "^s3:\\/\\/")
            try self.destinationSettings?.validate(name: "\(name).destinationSettings")
            try self.encryption?.validate(name: "\(name).encryption")
            try self.validate(self.fragmentLength, name: "fragmentLength", parent: name, max: 2147483647)
            try self.validate(self.fragmentLength, name: "fragmentLength", parent: name, min: 1)
            try self.imageBasedTrickPlaySettings?.validate(name: "\(name).imageBasedTrickPlaySettings")
            try self.validate(self.minBufferTime, name: "minBufferTime", parent: name, max: 2147483647)
            try self.validate(self.minBufferTime, name: "minBufferTime", parent: name, min: 0)
            try self.validate(self.segmentLength, name: "segmentLength", parent: name, max: 2147483647)
            try self.validate(self.segmentLength, name: "segmentLength", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case additionalManifests = "additionalManifests"
            case baseUrl = "baseUrl"
            case clientCache = "clientCache"
            case codecSpecification = "codecSpecification"
            case dashIFrameTrickPlayNameModifier = "dashIFrameTrickPlayNameModifier"
            case dashManifestStyle = "dashManifestStyle"
            case destination = "destination"
            case destinationSettings = "destinationSettings"
            case encryption = "encryption"
            case fragmentLength = "fragmentLength"
            case imageBasedTrickPlay = "imageBasedTrickPlay"
            case imageBasedTrickPlaySettings = "imageBasedTrickPlaySettings"
            case manifestCompression = "manifestCompression"
            case manifestDurationFormat = "manifestDurationFormat"
            case minBufferTime = "minBufferTime"
            case minFinalSegmentLength = "minFinalSegmentLength"
            case mpdManifestBandwidthType = "mpdManifestBandwidthType"
            case mpdProfile = "mpdProfile"
            case ptsOffsetHandlingForBFrames = "ptsOffsetHandlingForBFrames"
            case segmentControl = "segmentControl"
            case segmentLength = "segmentLength"
            case segmentLengthControl = "segmentLengthControl"
            case streamInfResolution = "streamInfResolution"
            case targetDurationCompatibilityMode = "targetDurationCompatibilityMode"
            case videoCompositionOffsets = "videoCompositionOffsets"
            case writeDashManifest = "writeDashManifest"
            case writeHlsManifest = "writeHlsManifest"
            case writeSegmentTimelineInRepresentation = "writeSegmentTimelineInRepresentation"
        }
    }

    public struct CmafImageBasedTrickPlaySettings: AWSEncodableShape & AWSDecodableShape {
        /// The cadence MediaConvert follows for generating thumbnails. If set to FOLLOW_IFRAME, MediaConvert generates thumbnails for each IDR frame in the output (matching the GOP cadence). If set to FOLLOW_CUSTOM, MediaConvert generates thumbnails according to the interval you specify in thumbnailInterval.
        public let intervalCadence: CmafIntervalCadence?
        /// Height of each thumbnail within each tile image, in pixels. Leave blank to maintain aspect ratio with thumbnail width. If following the aspect ratio would lead to a total tile height greater than 4096, then the job will be rejected. Must be divisible by 2.
        public let thumbnailHeight: Int?
        /// Enter the interval, in seconds, that MediaConvert uses to generate thumbnails. If the interval you enter doesn't align with the output frame rate, MediaConvert automatically rounds the interval to align with the output frame rate. For example, if the output frame rate is 29.97 frames per second and you enter 5, MediaConvert uses a 150 frame interval to generate thumbnails.
        public let thumbnailInterval: Double?
        /// Width of each thumbnail within each tile image, in pixels. Default is 312. Must be divisible by 8.
        public let thumbnailWidth: Int?
        /// Number of thumbnails in each column of a tile image. Set a value between 2 and 2048. Must be divisible by 2.
        public let tileHeight: Int?
        /// Number of thumbnails in each row of a tile image. Set a value between 1 and 512.
        public let tileWidth: Int?

        @inlinable
        public init(intervalCadence: CmafIntervalCadence? = nil, thumbnailHeight: Int? = nil, thumbnailInterval: Double? = nil, thumbnailWidth: Int? = nil, tileHeight: Int? = nil, tileWidth: Int? = nil) {
            self.intervalCadence = intervalCadence
            self.thumbnailHeight = thumbnailHeight
            self.thumbnailInterval = thumbnailInterval
            self.thumbnailWidth = thumbnailWidth
            self.tileHeight = tileHeight
            self.tileWidth = tileWidth
        }

        public func validate(name: String) throws {
            try self.validate(self.thumbnailHeight, name: "thumbnailHeight", parent: name, max: 4096)
            try self.validate(self.thumbnailHeight, name: "thumbnailHeight", parent: name, min: 2)
            try self.validate(self.thumbnailWidth, name: "thumbnailWidth", parent: name, max: 4096)
            try self.validate(self.thumbnailWidth, name: "thumbnailWidth", parent: name, min: 8)
            try self.validate(self.tileHeight, name: "tileHeight", parent: name, max: 2048)
            try self.validate(self.tileHeight, name: "tileHeight", parent: name, min: 1)
            try self.validate(self.tileWidth, name: "tileWidth", parent: name, max: 512)
            try self.validate(self.tileWidth, name: "tileWidth", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case intervalCadence = "intervalCadence"
            case thumbnailHeight = "thumbnailHeight"
            case thumbnailInterval = "thumbnailInterval"
            case thumbnailWidth = "thumbnailWidth"
            case tileHeight = "tileHeight"
            case tileWidth = "tileWidth"
        }
    }

    public struct CmfcSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify this setting only when your output will be consumed by a downstream repackaging workflow that is sensitive to very small duration differences between video and audio. For this situation, choose Match video duration. In all other cases, keep the default value, Default codec duration. When you choose Match video duration, MediaConvert pads the output audio streams with silence or trims them to ensure that the total duration of each audio stream is at least as long as the total duration of the video stream. After padding or trimming, the audio stream duration is no more than one frame longer than the video stream. MediaConvert applies audio padding or trimming only to the end of the last segment of the output. For unsegmented outputs, MediaConvert adds padding only to the end of the file. When you keep the default value, any minor discrepancies between audio and video duration will depend on your output audio codec.
        public let audioDuration: CmfcAudioDuration?
        /// Specify the audio rendition group for this audio rendition. Specify up to one value for each audio output in your output group. This value appears in your HLS parent manifest in the EXT-X-MEDIA tag of TYPE=AUDIO, as the value for the GROUP-ID attribute. For example, if you specify "audio_aac_1" for Audio group ID, it appears in your manifest like this: #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio_aac_1". Related setting: To associate the rendition group that this audio track belongs to with a video rendition, include the same value that you provide here for that video output's setting Audio rendition sets.
        public let audioGroupId: String?
        /// List the audio rendition groups that you want included with this video rendition. Use a comma-separated list. For example, say you want to include the audio rendition groups that have the audio group IDs "audio_aac_1" and "audio_dolby". Then you would specify this value: "audio_aac_1,audio_dolby". Related setting: The rendition groups that you include in your comma-separated list should all match values that you specify in the setting Audio group ID for audio renditions in the same output group as this video rendition. Default behavior: If you don't specify anything here and for Audio group ID, MediaConvert puts each audio variant in its own audio rendition group and associates it with every video variant. Each value in your list appears in your HLS parent manifest in the EXT-X-STREAM-INF tag as the value for the AUDIO attribute. To continue the previous example, say that the file name for the child manifest for your video rendition is "amazing_video_1.m3u8". Then, in your parent manifest, each value will appear on separate lines, like this: #EXT-X-STREAM-INF:AUDIO="audio_aac_1"... amazing_video_1.m3u8 #EXT-X-STREAM-INF:AUDIO="audio_dolby"... amazing_video_1.m3u8
        public let audioRenditionSets: String?
        /// Use this setting to control the values that MediaConvert puts in your HLS parent playlist to control how the client player selects which audio track to play. Choose Audio-only variant stream (AUDIO_ONLY_VARIANT_STREAM) for any variant that you want to prohibit the client from playing with video. This causes MediaConvert to represent the variant as an EXT-X-STREAM-INF in the HLS manifest. The other options for this setting determine the values that MediaConvert writes for the DEFAULT and AUTOSELECT attributes of the EXT-X-MEDIA entry for the audio variant. For more information about these attributes, see the Apple documentation article https://developer.apple.com/documentation/http_live_streaming/example_playlists_for_http_live_streaming/adding_alternate_media_to_a_playlist. Choose Alternate audio, auto select, default to set DEFAULT=YES and AUTOSELECT=YES. Choose this value for only one variant in your output group. Choose Alternate audio, auto select, not default to set DEFAULT=NO and AUTOSELECT=YES. Choose Alternate Audio, Not Auto Select to set DEFAULT=NO and AUTOSELECT=NO. When you don't specify a value for this setting, MediaConvert defaults to Alternate audio, auto select, default. When there is more than one variant in your output group, you must explicitly choose a value for this setting.
        public let audioTrackType: CmfcAudioTrackType?
        /// Specify whether to flag this audio track as descriptive video service (DVS) in your HLS parent manifest. When you choose Flag, MediaConvert includes the parameter CHARACTERISTICS="public.accessibility.describes-video" in the EXT-X-MEDIA entry for this track. When you keep the default choice, Don't flag, MediaConvert leaves this parameter out. The DVS flag can help with accessibility on Apple devices. For more information, see the Apple documentation.
        public let descriptiveVideoServiceFlag: CmfcDescriptiveVideoServiceFlag?
        /// Choose Include to have MediaConvert generate an HLS child manifest that lists only the I-frames for this rendition, in addition to your regular manifest for this rendition. You might use this manifest as part of a workflow that creates preview functions for your video. MediaConvert adds both the I-frame only child manifest and the regular child manifest to the parent manifest. When you don't need the I-frame only child manifest, keep the default value Exclude.
        public let iFrameOnlyManifest: CmfcIFrameOnlyManifest?
        /// To include key-length-value metadata in this output: Set KLV metadata insertion to Passthrough. MediaConvert reads KLV metadata present in your input and writes each instance to a separate event message box in the output, according to MISB ST1910.1. To exclude this KLV metadata: Set KLV metadata insertion to None or leave blank.
        public let klvMetadata: CmfcKlvMetadata?
        /// To add an InbandEventStream element in your output MPD manifest for each type of event message, set Manifest metadata signaling to Enabled. For ID3 event messages, the InbandEventStream element schemeIdUri will be same value that you specify for ID3 metadata scheme ID URI. For SCTE35 event messages, the InbandEventStream element schemeIdUri will be "urn:scte:scte35:2013:bin". To leave these elements out of your output MPD manifest, set Manifest metadata signaling to Disabled. To enable Manifest metadata signaling, you must also set SCTE-35 source to Passthrough, ESAM SCTE-35 to insert, or ID3 metadata to Passthrough.
        public let manifestMetadataSignaling: CmfcManifestMetadataSignaling?
        /// Use this setting only when you specify SCTE-35 markers from ESAM. Choose INSERT to put SCTE-35 markers in this output at the insertion points that you specify in an ESAM XML document. Provide the document in the setting SCC XML.
        public let scte35Esam: CmfcScte35Esam?
        /// Ignore this setting unless you have SCTE-35 markers in your input video file. Choose Passthrough if you want SCTE-35 markers that appear in your input to also appear in this output. Choose None if you don't want those SCTE-35 markers in this output.
        public let scte35Source: CmfcScte35Source?
        /// To include ID3 metadata in this output: Set ID3 metadata to Passthrough. Specify this ID3 metadata in Custom ID3 metadata inserter. MediaConvert writes each instance of ID3 metadata in a separate Event Message (eMSG) box. To exclude this ID3 metadata: Set ID3 metadata to None or leave blank.
        public let timedMetadata: CmfcTimedMetadata?
        /// Specify the event message box (eMSG) version for ID3 timed metadata in your output.
        /// For more information, see ISO/IEC 23009-1:2022 section 5.10.3.3.3 Syntax.
        /// Leave blank to use the default value Version 0.
        /// When you specify Version 1, you must also set ID3 metadata to Passthrough.
        public let timedMetadataBoxVersion: CmfcTimedMetadataBoxVersion?
        /// Specify the event message box (eMSG) scheme ID URI for ID3 timed metadata in your output. For more information, see ISO/IEC 23009-1:2022 section 5.10.3.3.4 Semantics. Leave blank to use the default value: https://aomedia.org/emsg/ID3 When you specify a value for ID3 metadata scheme ID URI, you must also set ID3 metadata to Passthrough.
        public let timedMetadataSchemeIdUri: String?
        /// Specify the event message box (eMSG) value for ID3 timed metadata in your output. For more information, see ISO/IEC 23009-1:2022 section 5.10.3.3.4 Semantics. When you specify a value for ID3 Metadata Value, you must also set ID3 metadata to Passthrough.
        public let timedMetadataValue: String?

        @inlinable
        public init(audioDuration: CmfcAudioDuration? = nil, audioGroupId: String? = nil, audioRenditionSets: String? = nil, audioTrackType: CmfcAudioTrackType? = nil, descriptiveVideoServiceFlag: CmfcDescriptiveVideoServiceFlag? = nil, iFrameOnlyManifest: CmfcIFrameOnlyManifest? = nil, klvMetadata: CmfcKlvMetadata? = nil, manifestMetadataSignaling: CmfcManifestMetadataSignaling? = nil, scte35Esam: CmfcScte35Esam? = nil, scte35Source: CmfcScte35Source? = nil, timedMetadata: CmfcTimedMetadata? = nil, timedMetadataBoxVersion: CmfcTimedMetadataBoxVersion? = nil, timedMetadataSchemeIdUri: String? = nil, timedMetadataValue: String? = nil) {
            self.audioDuration = audioDuration
            self.audioGroupId = audioGroupId
            self.audioRenditionSets = audioRenditionSets
            self.audioTrackType = audioTrackType
            self.descriptiveVideoServiceFlag = descriptiveVideoServiceFlag
            self.iFrameOnlyManifest = iFrameOnlyManifest
            self.klvMetadata = klvMetadata
            self.manifestMetadataSignaling = manifestMetadataSignaling
            self.scte35Esam = scte35Esam
            self.scte35Source = scte35Source
            self.timedMetadata = timedMetadata
            self.timedMetadataBoxVersion = timedMetadataBoxVersion
            self.timedMetadataSchemeIdUri = timedMetadataSchemeIdUri
            self.timedMetadataValue = timedMetadataValue
        }

        public func validate(name: String) throws {
            try self.validate(self.timedMetadataSchemeIdUri, name: "timedMetadataSchemeIdUri", parent: name, max: 1000)
            try self.validate(self.timedMetadataValue, name: "timedMetadataValue", parent: name, max: 1000)
        }

        private enum CodingKeys: String, CodingKey {
            case audioDuration = "audioDuration"
            case audioGroupId = "audioGroupId"
            case audioRenditionSets = "audioRenditionSets"
            case audioTrackType = "audioTrackType"
            case descriptiveVideoServiceFlag = "descriptiveVideoServiceFlag"
            case iFrameOnlyManifest = "iFrameOnlyManifest"
            case klvMetadata = "klvMetadata"
            case manifestMetadataSignaling = "manifestMetadataSignaling"
            case scte35Esam = "scte35Esam"
            case scte35Source = "scte35Source"
            case timedMetadata = "timedMetadata"
            case timedMetadataBoxVersion = "timedMetadataBoxVersion"
            case timedMetadataSchemeIdUri = "timedMetadataSchemeIdUri"
            case timedMetadataValue = "timedMetadataValue"
        }
    }

    public struct ColorConversion3DLUTSetting: AWSEncodableShape & AWSDecodableShape {
        /// Specify the input file S3, HTTP, or HTTPS URL for your 3D LUT .cube file. Note that MediaConvert accepts 3D LUT files up to 8MB in size.
        public let fileInput: String?
        /// Specify which inputs use this 3D LUT, according to their color space.
        public let inputColorSpace: ColorSpace?
        /// Specify which inputs use this 3D LUT, according to their luminance. To apply this 3D LUT to HDR10 or P3D65 (HDR) inputs with a specific mastering luminance: Enter an integer from 0 to 2147483647, corresponding to the input's Maximum luminance value. To apply this 3D LUT to any input regardless of its luminance: Leave blank, or enter 0.
        public let inputMasteringLuminance: Int?
        /// Specify which outputs use this 3D LUT, according to their color space.
        public let outputColorSpace: ColorSpace?
        /// Specify which outputs use this 3D LUT, according to their luminance. To apply this 3D LUT to HDR10 or P3D65 (HDR) outputs with a specific luminance: Enter an integer from 0 to 2147483647, corresponding to the output's luminance. To apply this 3D LUT to any output regardless of its luminance: Leave blank, or enter 0.
        public let outputMasteringLuminance: Int?

        @inlinable
        public init(fileInput: String? = nil, inputColorSpace: ColorSpace? = nil, inputMasteringLuminance: Int? = nil, outputColorSpace: ColorSpace? = nil, outputMasteringLuminance: Int? = nil) {
            self.fileInput = fileInput
            self.inputColorSpace = inputColorSpace
            self.inputMasteringLuminance = inputMasteringLuminance
            self.outputColorSpace = outputColorSpace
            self.outputMasteringLuminance = outputMasteringLuminance
        }

        public func validate(name: String) throws {
            try self.validate(self.fileInput, name: "fileInput", parent: name, min: 14)
            try self.validate(self.fileInput, name: "fileInput", parent: name, pattern: "^((s3://(.*?)\\.(cube|CUBE))|(https?://(.*?)\\.(cube|CUBE)(\\?([^&=]+=[^&]+&)*[^&=]+=[^&]+)?))$")
            try self.validate(self.inputMasteringLuminance, name: "inputMasteringLuminance", parent: name, max: 2147483647)
            try self.validate(self.inputMasteringLuminance, name: "inputMasteringLuminance", parent: name, min: 0)
            try self.validate(self.outputMasteringLuminance, name: "outputMasteringLuminance", parent: name, max: 2147483647)
            try self.validate(self.outputMasteringLuminance, name: "outputMasteringLuminance", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case fileInput = "fileInput"
            case inputColorSpace = "inputColorSpace"
            case inputMasteringLuminance = "inputMasteringLuminance"
            case outputColorSpace = "outputColorSpace"
            case outputMasteringLuminance = "outputMasteringLuminance"
        }
    }

    public struct ColorCorrector: AWSEncodableShape & AWSDecodableShape {
        /// Brightness level.
        public let brightness: Int?
        /// Specify YUV limits and RGB tolerances when you set Sample range conversion to Limited range clip.
        public let clipLimits: ClipLimits?
        /// Specify the color space you want for this output. The service supports conversion between HDR formats, between SDR formats, from SDR to HDR, and from HDR to SDR. SDR to HDR conversion doesn't upgrade the dynamic range. The converted video has an HDR format, but visually appears the same as an unconverted output. HDR to SDR conversion uses tone mapping to approximate the outcome of manually regrading from HDR to SDR. When you specify an output color space, MediaConvert uses the following color space metadata, which includes color primaries, transfer characteristics, and matrix coefficients: * HDR 10: BT.2020, PQ, BT.2020 non-constant * HLG 2020: BT.2020, HLG, BT.2020 non-constant * P3DCI (Theater): DCIP3, SMPTE 428M, BT.709 * P3D65 (SDR): Display P3, sRGB, BT.709 * P3D65 (HDR): Display P3, PQ, BT.709
        public let colorSpaceConversion: ColorSpaceConversion?
        /// Contrast level.
        public let contrast: Int?
        /// Use these settings when you convert to the HDR 10 color space. Specify the SMPTE ST 2086 Mastering Display Color Volume static metadata that you want signaled in the output. These values don't affect the pixel values that are encoded in the video stream. They are intended to help the downstream video player display content in a way that reflects the intentions of the the content creator. When you set Color space conversion to HDR 10, these settings are required. You must set values for Max frame average light level and Max content light level; these settings don't have a default value. The default values for the other HDR 10 metadata settings are defined by the P3D65 color space. For more information about MediaConvert HDR jobs, see https://docs.aws.amazon.com/console/mediaconvert/hdr.
        public let hdr10Metadata: Hdr10Metadata?
        /// Specify how MediaConvert maps brightness and colors from your HDR input to your SDR output. The mode that you select represents a creative choice, with different tradeoffs in the details and tones of your output. To maintain details in bright or saturated areas of your output: Choose Preserve details. For some sources, your SDR output may look less bright and less saturated when compared to your HDR source. MediaConvert automatically applies this mode for HLG sources, regardless of your choice. For a bright and saturated output: Choose Vibrant. We recommend that you choose this mode when any of your source content is HDR10, and for the best results when it is mastered for 1000 nits. You may notice loss of details in bright or saturated areas of your output. HDR to SDR tone mapping has no effect when your input is SDR.
        public let hdrToSdrToneMapper: HDRToSDRToneMapper?
        /// Hue in degrees.
        public let hue: Int?
        /// Specify the maximum mastering display luminance. Enter an integer from 0 to 2147483647, in units of 0.0001 nits. For example, enter 10000000 for 1000 nits.
        public let maxLuminance: Int?
        /// Specify how MediaConvert limits the color sample range for this output. To create a limited range output from a full range input: Choose Limited range squeeze. For full range inputs, MediaConvert performs a linear offset to color samples equally across all pixels and frames. Color samples in 10-bit outputs are limited to 64 through 940, and 8-bit outputs are limited to 16 through 235. Note: For limited range inputs, values for color samples are passed through to your output unchanged. MediaConvert does not limit the sample range. To correct pixels in your input that are out of range or out of gamut: Choose Limited range clip. Use for broadcast applications. MediaConvert conforms any pixels outside of the values that you specify under Minimum YUV and Maximum YUV to limited range bounds. MediaConvert also corrects any YUV values that, when converted to RGB, would be outside the bounds you specify under Minimum RGB tolerance and Maximum RGB tolerance. With either limited range conversion, MediaConvert writes the sample range metadata in the output.
        public let sampleRangeConversion: SampleRangeConversion?
        /// Saturation level.
        public let saturation: Int?
        /// Specify the reference white level, in nits, for all of your SDR inputs. Use to correct brightness levels within HDR10 outputs. The following color metadata must be present in your SDR input: color primaries, transfer characteristics, and matrix coefficients. If your SDR input has missing color metadata, or if you want to correct input color metadata, manually specify a color space in the input video selector. For 1,000 nit peak brightness displays, we recommend that you set SDR reference white level to 203 (according to ITU-R BT.2408). Leave blank to use the default value of 100, or specify an integer from 100 to 1000.
        public let sdrReferenceWhiteLevel: Int?

        @inlinable
        public init(brightness: Int? = nil, clipLimits: ClipLimits? = nil, colorSpaceConversion: ColorSpaceConversion? = nil, contrast: Int? = nil, hdr10Metadata: Hdr10Metadata? = nil, hdrToSdrToneMapper: HDRToSDRToneMapper? = nil, hue: Int? = nil, maxLuminance: Int? = nil, sampleRangeConversion: SampleRangeConversion? = nil, saturation: Int? = nil, sdrReferenceWhiteLevel: Int? = nil) {
            self.brightness = brightness
            self.clipLimits = clipLimits
            self.colorSpaceConversion = colorSpaceConversion
            self.contrast = contrast
            self.hdr10Metadata = hdr10Metadata
            self.hdrToSdrToneMapper = hdrToSdrToneMapper
            self.hue = hue
            self.maxLuminance = maxLuminance
            self.sampleRangeConversion = sampleRangeConversion
            self.saturation = saturation
            self.sdrReferenceWhiteLevel = sdrReferenceWhiteLevel
        }

        public func validate(name: String) throws {
            try self.validate(self.brightness, name: "brightness", parent: name, max: 100)
            try self.validate(self.brightness, name: "brightness", parent: name, min: 1)
            try self.clipLimits?.validate(name: "\(name).clipLimits")
            try self.validate(self.contrast, name: "contrast", parent: name, max: 100)
            try self.validate(self.contrast, name: "contrast", parent: name, min: 1)
            try self.hdr10Metadata?.validate(name: "\(name).hdr10Metadata")
            try self.validate(self.hue, name: "hue", parent: name, max: 180)
            try self.validate(self.hue, name: "hue", parent: name, min: -180)
            try self.validate(self.maxLuminance, name: "maxLuminance", parent: name, max: 2147483647)
            try self.validate(self.maxLuminance, name: "maxLuminance", parent: name, min: 0)
            try self.validate(self.saturation, name: "saturation", parent: name, max: 100)
            try self.validate(self.saturation, name: "saturation", parent: name, min: 1)
            try self.validate(self.sdrReferenceWhiteLevel, name: "sdrReferenceWhiteLevel", parent: name, max: 1000)
            try self.validate(self.sdrReferenceWhiteLevel, name: "sdrReferenceWhiteLevel", parent: name, min: 100)
        }

        private enum CodingKeys: String, CodingKey {
            case brightness = "brightness"
            case clipLimits = "clipLimits"
            case colorSpaceConversion = "colorSpaceConversion"
            case contrast = "contrast"
            case hdr10Metadata = "hdr10Metadata"
            case hdrToSdrToneMapper = "hdrToSdrToneMapper"
            case hue = "hue"
            case maxLuminance = "maxLuminance"
            case sampleRangeConversion = "sampleRangeConversion"
            case saturation = "saturation"
            case sdrReferenceWhiteLevel = "sdrReferenceWhiteLevel"
        }
    }

    public struct Container: AWSDecodableShape {
        /// The total duration of your media file, in seconds.
        public let duration: Double?
        /// The format of your media file. For example: MP4, QuickTime (MOV), Matroska (MKV), WebM or MXF. Note that this will be blank if your media file has a format that the MediaConvert Probe operation does not recognize.
        public let format: Format?
        /// Details about each track (video, audio, or data) in the media file.
        public let tracks: [Track]?

        @inlinable
        public init(duration: Double? = nil, format: Format? = nil, tracks: [Track]? = nil) {
            self.duration = duration
            self.format = format
            self.tracks = tracks
        }

        private enum CodingKeys: String, CodingKey {
            case duration = "duration"
            case format = "format"
            case tracks = "tracks"
        }
    }

    public struct ContainerSettings: AWSEncodableShape & AWSDecodableShape {
        /// These settings relate to the fragmented MP4 container for the segments in your CMAF outputs.
        public let cmfcSettings: CmfcSettings?
        /// Container for this output. Some containers require a container settings object. If not specified, the default object will be created.
        public let container: ContainerType?
        /// Settings for F4v container
        public let f4vSettings: F4vSettings?
        /// MPEG-2 TS container settings. These apply to outputs in a File output group when the output's container is MPEG-2 Transport Stream (M2TS). In these assets, data is organized by the program map table (PMT). Each transport stream program contains subsets of data, including audio, video, and metadata. Each of these subsets of data has a numerical label called a packet identifier (PID). Each transport stream program corresponds to one MediaConvert output. The PMT lists the types of data in a program along with their PID. Downstream systems and players use the program map table to look up the PID for each type of data it accesses and then uses the PIDs to locate specific data within the asset.
        public let m2tsSettings: M2tsSettings?
        /// These settings relate to the MPEG-2 transport stream (MPEG2-TS) container for the MPEG2-TS segments in your HLS outputs.
        public let m3u8Settings: M3u8Settings?
        /// These settings relate to your QuickTime MOV output container.
        public let movSettings: MovSettings?
        /// These settings relate to your MP4 output container. You can create audio only outputs with this container. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/supported-codecs-containers-audio-only.html#output-codecs-and-containers-supported-for-audio-only.
        public let mp4Settings: Mp4Settings?
        /// These settings relate to the fragmented MP4 container for the segments in your DASH outputs.
        public let mpdSettings: MpdSettings?
        /// These settings relate to your MXF output container.
        public let mxfSettings: MxfSettings?

        @inlinable
        public init(cmfcSettings: CmfcSettings? = nil, container: ContainerType? = nil, f4vSettings: F4vSettings? = nil, m2tsSettings: M2tsSettings? = nil, m3u8Settings: M3u8Settings? = nil, movSettings: MovSettings? = nil, mp4Settings: Mp4Settings? = nil, mpdSettings: MpdSettings? = nil, mxfSettings: MxfSettings? = nil) {
            self.cmfcSettings = cmfcSettings
            self.container = container
            self.f4vSettings = f4vSettings
            self.m2tsSettings = m2tsSettings
            self.m3u8Settings = m3u8Settings
            self.movSettings = movSettings
            self.mp4Settings = mp4Settings
            self.mpdSettings = mpdSettings
            self.mxfSettings = mxfSettings
        }

        public func validate(name: String) throws {
            try self.cmfcSettings?.validate(name: "\(name).cmfcSettings")
            try self.m2tsSettings?.validate(name: "\(name).m2tsSettings")
            try self.m3u8Settings?.validate(name: "\(name).m3u8Settings")
            try self.mp4Settings?.validate(name: "\(name).mp4Settings")
            try self.mpdSettings?.validate(name: "\(name).mpdSettings")
            try self.mxfSettings?.validate(name: "\(name).mxfSettings")
        }

        private enum CodingKeys: String, CodingKey {
            case cmfcSettings = "cmfcSettings"
            case container = "container"
            case f4vSettings = "f4vSettings"
            case m2tsSettings = "m2tsSettings"
            case m3u8Settings = "m3u8Settings"
            case movSettings = "movSettings"
            case mp4Settings = "mp4Settings"
            case mpdSettings = "mpdSettings"
            case mxfSettings = "mxfSettings"
        }
    }

    public struct CreateJobRequest: AWSEncodableShape {
        /// Optional. Accelerated transcoding can significantly speed up jobs with long, visually complex content. Outputs that use this feature incur pro-tier pricing. For information about feature limitations, see the AWS Elemental MediaConvert User Guide.
        public let accelerationSettings: AccelerationSettings?
        /// Optionally choose a Billing tags source that AWS Billing and Cost Management will use to display tags for individual output costs on any billing report that you set up. Leave blank to use the default value, Job.
        public let billingTagsSource: BillingTagsSource?
        /// Prevent duplicate jobs from being created and ensure idempotency for your requests. A client request token can be any string that includes up to 64 ASCII characters. If you reuse a client request token within one minute of a successful request, the API returns the job details of the original request instead. For more information see https://docs.aws.amazon.com/mediaconvert/latest/apireference/idempotency.html.
        public let clientRequestToken: String?
        /// Optional. Use queue hopping to avoid overly long waits in the backlog of the queue that you submit your job to. Specify an alternate queue and the maximum time that your job will wait in the initial queue before hopping. For more information about this feature, see the AWS Elemental MediaConvert User Guide.
        public let hopDestinations: [HopDestination]?
        /// Use Job engine versions to run jobs for your production workflow on one version, while you test and validate the latest version. To specify a Job engine version: Enter a date in a YYYY-MM-DD format. For a list of valid Job engine versions, submit a ListVersions request. To not specify a Job engine version: Leave blank.
        public let jobEngineVersion: String?
        /// Optional. When you create a job, you can either specify a job template or specify the transcoding settings individually.
        public let jobTemplate: String?
        /// Optional. Specify the relative priority for this job. In any given queue, the service begins processing the job with the highest value first. When more than one job has the same priority, the service begins processing the job that you submitted first. If you don't specify a priority, the service uses the default value 0.
        public let priority: Int?
        /// Optional. When you create a job, you can specify a queue to send it to. If you don't specify, the job will go to the default queue. For more about queues, see the User Guide topic at https://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html.
        public let queue: String?
        /// Required. The IAM role you use for creating this job. For details about permissions, see the User Guide topic at the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/iam-role.html.
        public let role: String?
        /// JobSettings contains all the transcode settings for a job.
        public let settings: JobSettings?
        /// Optional. Enable this setting when you run a test job to estimate how many reserved transcoding slots (RTS) you need. When this is enabled, MediaConvert runs your job from an on-demand queue with similar performance to what you will see with one RTS in a reserved queue. This setting is disabled by default.
        public let simulateReservedQueue: SimulateReservedQueue?
        /// Optional. Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch Events. Set the interval, in seconds, between status updates. MediaConvert sends an update at this interval from the time the service begins processing your job to the time it completes the transcode or encounters an error.
        public let statusUpdateInterval: StatusUpdateInterval?
        /// Optional. The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key.  Use standard AWS tags on your job for automatic integration with AWS services and for custom integrations and workflows.
        public let tags: [String: String]?
        /// Optional. User-defined metadata that you want to associate with an MediaConvert job. You specify metadata in key/value pairs.  Use only for existing integrations or workflows that rely on job metadata tags. Otherwise, we recommend that you use standard AWS tags.
        public let userMetadata: [String: String]?

        @inlinable
        public init(accelerationSettings: AccelerationSettings? = nil, billingTagsSource: BillingTagsSource? = nil, clientRequestToken: String? = CreateJobRequest.idempotencyToken(), hopDestinations: [HopDestination]? = nil, jobEngineVersion: String? = nil, jobTemplate: String? = nil, priority: Int? = nil, queue: String? = nil, role: String? = nil, settings: JobSettings? = nil, simulateReservedQueue: SimulateReservedQueue? = nil, statusUpdateInterval: StatusUpdateInterval? = nil, tags: [String: String]? = nil, userMetadata: [String: String]? = nil) {
            self.accelerationSettings = accelerationSettings
            self.billingTagsSource = billingTagsSource
            self.clientRequestToken = clientRequestToken
            self.hopDestinations = hopDestinations
            self.jobEngineVersion = jobEngineVersion
            self.jobTemplate = jobTemplate
            self.priority = priority
            self.queue = queue
            self.role = role
            self.settings = settings
            self.simulateReservedQueue = simulateReservedQueue
            self.statusUpdateInterval = statusUpdateInterval
            self.tags = tags
            self.userMetadata = userMetadata
        }

        public func validate(name: String) throws {
            try self.hopDestinations?.forEach {
                try $0.validate(name: "\(name).hopDestinations[]")
            }
            try self.validate(self.priority, name: "priority", parent: name, max: 50)
            try self.validate(self.priority, name: "priority", parent: name, min: -50)
            try self.settings?.validate(name: "\(name).settings")
        }

        private enum CodingKeys: String, CodingKey {
            case accelerationSettings = "accelerationSettings"
            case billingTagsSource = "billingTagsSource"
            case clientRequestToken = "clientRequestToken"
            case hopDestinations = "hopDestinations"
            case jobEngineVersion = "jobEngineVersion"
            case jobTemplate = "jobTemplate"
            case priority = "priority"
            case queue = "queue"
            case role = "role"
            case settings = "settings"
            case simulateReservedQueue = "simulateReservedQueue"
            case statusUpdateInterval = "statusUpdateInterval"
            case tags = "tags"
            case userMetadata = "userMetadata"
        }
    }

    public struct CreateJobResponse: AWSDecodableShape {
        /// Each job converts an input file into an output file or files. For more information, see the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
        public let job: Job?

        @inlinable
        public init(job: Job? = nil) {
            self.job = job
        }

        private enum CodingKeys: String, CodingKey {
            case job = "job"
        }
    }

    public struct CreateJobTemplateRequest: AWSEncodableShape {
        /// Accelerated transcoding can significantly speed up jobs with long, visually complex content. Outputs that use this feature incur pro-tier pricing. For information about feature limitations, see the AWS Elemental MediaConvert User Guide.
        public let accelerationSettings: AccelerationSettings?
        /// Optional. A category for the job template you are creating
        public let category: String?
        /// Optional. A description of the job template you are creating.
        public let description: String?
        /// Optional. Use queue hopping to avoid overly long waits in the backlog of the queue that you submit your job to. Specify an alternate queue and the maximum time that your job will wait in the initial queue before hopping. For more information about this feature, see the AWS Elemental MediaConvert User Guide.
        public let hopDestinations: [HopDestination]?
        /// The name of the job template you are creating.
        public let name: String?
        /// Specify the relative priority for this job. In any given queue, the service begins processing the job with the highest value first. When more than one job has the same priority, the service begins processing the job that you submitted first. If you don't specify a priority, the service uses the default value 0.
        public let priority: Int?
        /// Optional. The queue that jobs created from this template are assigned to. If you don't specify this, jobs will go to the default queue.
        public let queue: String?
        /// JobTemplateSettings contains all the transcode settings saved in the template that will be applied to jobs created from it.
        public let settings: JobTemplateSettings?
        /// Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch Events. Set the interval, in seconds, between status updates. MediaConvert sends an update at this interval from the time the service begins processing your job to the time it completes the transcode or encounters an error.
        public let statusUpdateInterval: StatusUpdateInterval?
        /// The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key.
        public let tags: [String: String]?

        @inlinable
        public init(accelerationSettings: AccelerationSettings? = nil, category: String? = nil, description: String? = nil, hopDestinations: [HopDestination]? = nil, name: String? = nil, priority: Int? = nil, queue: String? = nil, settings: JobTemplateSettings? = nil, statusUpdateInterval: StatusUpdateInterval? = nil, tags: [String: String]? = nil) {
            self.accelerationSettings = accelerationSettings
            self.category = category
            self.description = description
            self.hopDestinations = hopDestinations
            self.name = name
            self.priority = priority
            self.queue = queue
            self.settings = settings
            self.statusUpdateInterval = statusUpdateInterval
            self.tags = tags
        }

        public func validate(name: String) throws {
            try self.hopDestinations?.forEach {
                try $0.validate(name: "\(name).hopDestinations[]")
            }
            try self.validate(self.priority, name: "priority", parent: name, max: 50)
            try self.validate(self.priority, name: "priority", parent: name, min: -50)
            try self.settings?.validate(name: "\(name).settings")
        }

        private enum CodingKeys: String, CodingKey {
            case accelerationSettings = "accelerationSettings"
            case category = "category"
            case description = "description"
            case hopDestinations = "hopDestinations"
            case name = "name"
            case priority = "priority"
            case queue = "queue"
            case settings = "settings"
            case statusUpdateInterval = "statusUpdateInterval"
            case tags = "tags"
        }
    }

    public struct CreateJobTemplateResponse: AWSDecodableShape {
        /// A job template is a pre-made set of encoding instructions that you can use to quickly create a job.
        public let jobTemplate: JobTemplate?

        @inlinable
        public init(jobTemplate: JobTemplate? = nil) {
            self.jobTemplate = jobTemplate
        }

        private enum CodingKeys: String, CodingKey {
            case jobTemplate = "jobTemplate"
        }
    }

    public struct CreatePresetRequest: AWSEncodableShape {
        /// Optional. A category for the preset you are creating.
        public let category: String?
        /// Optional. A description of the preset you are creating.
        public let description: String?
        /// The name of the preset you are creating.
        public let name: String?
        /// Settings for preset
        public let settings: PresetSettings?
        /// The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key.
        public let tags: [String: String]?

        @inlinable
        public init(category: String? = nil, description: String? = nil, name: String? = nil, settings: PresetSettings? = nil, tags: [String: String]? = nil) {
            self.category = category
            self.description = description
            self.name = name
            self.settings = settings
            self.tags = tags
        }

        public func validate(name: String) throws {
            try self.settings?.validate(name: "\(name).settings")
        }

        private enum CodingKeys: String, CodingKey {
            case category = "category"
            case description = "description"
            case name = "name"
            case settings = "settings"
            case tags = "tags"
        }
    }

    public struct CreatePresetResponse: AWSDecodableShape {
        /// A preset is a collection of preconfigured media conversion settings that you want MediaConvert to apply to the output during the conversion process.
        public let preset: Preset?

        @inlinable
        public init(preset: Preset? = nil) {
            self.preset = preset
        }

        private enum CodingKeys: String, CodingKey {
            case preset = "preset"
        }
    }

    public struct CreateQueueRequest: AWSEncodableShape {
        /// Specify the maximum number of jobs your queue can process concurrently. For on-demand queues, the value you enter is constrained by your service quotas for Maximum concurrent jobs, per on-demand queue and Maximum concurrent jobs, per account. For reserved queues, specify the number of jobs you can process concurrently in your reservation plan instead.
        public let concurrentJobs: Int?
        /// Optional. A description of the queue that you are creating.
        public let description: String?
        /// The name of the queue that you are creating.
        public let name: String?
        /// Specifies whether the pricing plan for the queue is on-demand or reserved. For on-demand, you pay per minute, billed in increments of .01 minute. For reserved, you pay for the transcoding capacity of the entire queue, regardless of how much or how little you use it. Reserved pricing requires a 12-month commitment. When you use the API to create a queue, the default is on-demand.
        public let pricingPlan: PricingPlan?
        /// Details about the pricing plan for your reserved queue. Required for reserved queues and not applicable to on-demand queues.
        public let reservationPlanSettings: ReservationPlanSettings?
        /// Initial state of the queue. If you create a paused queue, then jobs in that queue won't begin.
        public let status: QueueStatus?
        /// The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key.
        public let tags: [String: String]?

        @inlinable
        public init(concurrentJobs: Int? = nil, description: String? = nil, name: String? = nil, pricingPlan: PricingPlan? = nil, reservationPlanSettings: ReservationPlanSettings? = nil, status: QueueStatus? = nil, tags: [String: String]? = nil) {
            self.concurrentJobs = concurrentJobs
            self.description = description
            self.name = name
            self.pricingPlan = pricingPlan
            self.reservationPlanSettings = reservationPlanSettings
            self.status = status
            self.tags = tags
        }

        private enum CodingKeys: String, CodingKey {
            case concurrentJobs = "concurrentJobs"
            case description = "description"
            case name = "name"
            case pricingPlan = "pricingPlan"
            case reservationPlanSettings = "reservationPlanSettings"
            case status = "status"
            case tags = "tags"
        }
    }

    public struct CreateQueueResponse: AWSDecodableShape {
        /// You can use queues to manage the resources that are available to your AWS account for running multiple transcoding jobs at the same time. If you don't specify a queue, the service sends all jobs through the default queue. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-queues.html.
        public let queue: Queue?

        @inlinable
        public init(queue: Queue? = nil) {
            self.queue = queue
        }

        private enum CodingKeys: String, CodingKey {
            case queue = "queue"
        }
    }

    public struct DashAdditionalManifest: AWSEncodableShape & AWSDecodableShape {
        /// Specify a name modifier that the service adds to the name of this manifest to make it different from the file names of the other main manifests in the output group. For example, say that the default main manifest for your DASH group is film-name.mpd. If you enter "-no-premium" for this setting, then the file name the service generates for this top-level manifest is film-name-no-premium.mpd.
        public let manifestNameModifier: String?
        /// Specify the outputs that you want this additional top-level manifest to reference.
        public let selectedOutputs: [String]?

        @inlinable
        public init(manifestNameModifier: String? = nil, selectedOutputs: [String]? = nil) {
            self.manifestNameModifier = manifestNameModifier
            self.selectedOutputs = selectedOutputs
        }

        public func validate(name: String) throws {
            try self.validate(self.manifestNameModifier, name: "manifestNameModifier", parent: name, min: 1)
            try self.selectedOutputs?.forEach {
                try validate($0, name: "selectedOutputs[]", parent: name, min: 1)
            }
        }

        private enum CodingKeys: String, CodingKey {
            case manifestNameModifier = "manifestNameModifier"
            case selectedOutputs = "selectedOutputs"
        }
    }

    public struct DashIsoEncryptionSettings: AWSEncodableShape & AWSDecodableShape {
        /// This setting can improve the compatibility of your output with video players on obsolete devices. It applies only to DASH H.264 outputs with DRM encryption. Choose Unencrypted SEI only to correct problems with playback on older devices. Otherwise, keep the default setting CENC v1. If you choose Unencrypted SEI, for that output, the service will exclude the access unit delimiter and will leave the SEI NAL units unencrypted.
        public let playbackDeviceCompatibility: DashIsoPlaybackDeviceCompatibility?
        /// If your output group type is HLS, DASH, or Microsoft Smooth, use these settings when doing DRM encryption with a SPEKE-compliant key provider. If your output group type is CMAF, use the SpekeKeyProviderCmaf settings instead.
        public let spekeKeyProvider: SpekeKeyProvider?

        @inlinable
        public init(playbackDeviceCompatibility: DashIsoPlaybackDeviceCompatibility? = nil, spekeKeyProvider: SpekeKeyProvider? = nil) {
            self.playbackDeviceCompatibility = playbackDeviceCompatibility
            self.spekeKeyProvider = spekeKeyProvider
        }

        public func validate(name: String) throws {
            try self.spekeKeyProvider?.validate(name: "\(name).spekeKeyProvider")
        }

        private enum CodingKeys: String, CodingKey {
            case playbackDeviceCompatibility = "playbackDeviceCompatibility"
            case spekeKeyProvider = "spekeKeyProvider"
        }
    }

    public struct DashIsoGroupSettings: AWSEncodableShape & AWSDecodableShape {
        /// By default, the service creates one .mpd DASH manifest for each DASH ISO output group in your job. This default manifest references every output in the output group. To create additional DASH manifests that reference a subset of the outputs in the output group, specify a list of them here.
        public let additionalManifests: [DashAdditionalManifest]?
        /// Use this setting only when your audio codec is a Dolby one (AC3, EAC3, or Atmos) and your downstream workflow requires that your DASH manifest use the Dolby channel configuration tag, rather than the MPEG one. For example, you might need to use this to make dynamic ad insertion work. Specify which audio channel configuration scheme ID URI MediaConvert writes in your DASH manifest. Keep the default value, MPEG channel configuration, to have MediaConvert write this: urn:mpeg:mpegB:cicp:ChannelConfiguration. Choose Dolby channel configuration to have MediaConvert write this instead: tag:dolby.com,2014:dash:audio_channel_configuration:2011.
        public let audioChannelConfigSchemeIdUri: DashIsoGroupAudioChannelConfigSchemeIdUri?
        /// A partial URI prefix that will be put in the manifest (.mpd) file at the top level BaseURL element. Can be used if streams are delivered from a different URL than the manifest file.
        public let baseUrl: String?
        /// Specify whether MediaConvert generates I-frame only video segments for DASH trick play, also known as trick mode. When specified, the I-frame only video segments are included within an additional AdaptationSet in your DASH output manifest. To generate I-frame only video segments: Enter a name as a text string, up to 256 character long. This name is appended to the end of this output group's base filename, that you specify as part of your destination URI, and used for the I-frame only video segment files. You may also include format identifiers. For more information, see: https://docs.aws.amazon.com/mediaconvert/latest/ug/using-variables-in-your-job-settings.html#using-settings-variables-with-streaming-outputs To not generate I-frame only video segments: Leave blank.
        public let dashIFrameTrickPlayNameModifier: String?
        /// Specify how MediaConvert writes SegmentTimeline in your output DASH manifest. To write a SegmentTimeline in each video Representation: Keep the default value, Basic. To write a common SegmentTimeline in the video AdaptationSet: Choose Compact. Note that MediaConvert will still write a SegmentTimeline in any Representation that does not share a common timeline. To write a video AdaptationSet for each different output framerate, and a common SegmentTimeline in each AdaptationSet: Choose Distinct.
        public let dashManifestStyle: DashManifestStyle?
        /// Use Destination to specify the S3 output location and the output filename base. Destination accepts format identifiers. If you do not specify the base filename in the URI, the service will use the filename of the input file. If your job has multiple inputs, the service uses the filename of the first input file.
        public let destination: String?
        /// Settings associated with the destination. Will vary based on the type of destination
        public let destinationSettings: DestinationSettings?
        /// DRM settings.
        public let encryption: DashIsoEncryptionSettings?
        /// Length of fragments to generate (in seconds). Fragment length must be compatible with GOP size and Framerate. Note that fragments will end on the next keyframe after this number of seconds, so actual fragment length may be longer. When Emit Single File is checked, the fragmentation is internal to a single output file and it does not cause the creation of many output files as in other output types.
        public let fragmentLength: Int?
        /// Supports HbbTV specification as indicated
        public let hbbtvCompliance: DashIsoHbbtvCompliance?
        /// Specify whether MediaConvert generates images for trick play. Keep the default value, None, to not generate any images. Choose Thumbnail to generate tiled thumbnails. Choose Thumbnail and full frame to generate tiled thumbnails and full-resolution images of single frames. MediaConvert adds an entry in the .mpd manifest for each set of images that you generate. A common application for these images is Roku trick mode. The thumbnails and full-frame images that MediaConvert creates with this feature are compatible with this Roku specification: https://developer.roku.com/docs/developer-program/media-playback/trick-mode/hls-and-dash.md
        public let imageBasedTrickPlay: DashIsoImageBasedTrickPlay?
        /// Tile and thumbnail settings applicable when imageBasedTrickPlay is ADVANCED
        public let imageBasedTrickPlaySettings: DashIsoImageBasedTrickPlaySettings?
        /// Minimum time of initially buffered media that is needed to ensure smooth playout.
        public let minBufferTime: Int?
        /// Keep this setting at the default value of 0, unless you are troubleshooting a problem with how devices play back the end of your video asset. If you know that player devices are hanging on the final segment of your video because the length of your final segment is too short, use this setting to specify a minimum final segment length, in seconds. Choose a value that is greater than or equal to 1 and less than your segment length. When you specify a value for this setting, the encoder will combine any final segment that is shorter than the length that you specify with the previous segment. For example, your segment length is 3 seconds and your final segment is .5 seconds without a minimum final segment length; when you set the minimum final segment length to 1, your final segment is 3.5 seconds.
        public let minFinalSegmentLength: Double?
        /// Specify how the value for bandwidth is determined for each video Representation in your output MPD manifest. We recommend that you choose a MPD manifest bandwidth type that is compatible with your downstream player configuration. Max: Use the same value that you specify for Max bitrate in the video output, in bits per second. Average: Use the calculated average bitrate of the encoded video output, in bits per second.
        public let mpdManifestBandwidthType: DashIsoMpdManifestBandwidthType?
        /// Specify whether your DASH profile is on-demand or main. When you choose Main profile, the service signals urn:mpeg:dash:profile:isoff-main:2011 in your .mpd DASH manifest. When you choose On-demand, the service signals urn:mpeg:dash:profile:isoff-on-demand:2011 in your .mpd. When you choose On-demand, you must also set the output group setting Segment control to Single file.
        public let mpdProfile: DashIsoMpdProfile?
        /// Use this setting only when your output video stream has B-frames, which causes the initial presentation time stamp (PTS) to be offset from the initial decode time stamp (DTS). Specify how MediaConvert handles PTS when writing time stamps in output DASH manifests. Choose Match initial PTS when you want MediaConvert to use the initial PTS as the first time stamp in the manifest. Choose Zero-based to have MediaConvert ignore the initial PTS in the video stream and instead write the initial time stamp as zero in the manifest. For outputs that don't have B-frames, the time stamps in your DASH manifests start at zero regardless of your choice here.
        public let ptsOffsetHandlingForBFrames: DashIsoPtsOffsetHandlingForBFrames?
        /// When set to SINGLE_FILE, a single output file is generated, which is internally segmented using the Fragment Length and Segment Length. When set to SEGMENTED_FILES, separate segment files will be created.
        public let segmentControl: DashIsoSegmentControl?
        /// Specify the length, in whole seconds, of each segment. When you don't specify a value, MediaConvert defaults to 30. Related settings: Use Segment length control to specify whether the encoder enforces this value strictly. Use Segment control to specify whether MediaConvert creates separate segment files or one content file that has metadata to mark the segment boundaries.
        public let segmentLength: Int?
        /// Specify how you want MediaConvert to determine segment lengths in this output group. To use the exact value that you specify under Segment length: Choose Exact. Note that this might result in additional I-frames in the output GOP. To create segment lengths that are a multiple of the GOP: Choose Multiple of GOP. MediaConvert will round up the segment lengths to match the next GOP boundary. To have MediaConvert automatically determine a segment duration that is a multiple of both the audio packets and the frame rates: Choose Match. When you do, also specify a target segment duration under Segment length. This is useful for some ad-insertion or segment replacement workflows. Note that Match has the following requirements: - Output containers: Include at least one video output and at least one audio output. Audio-only outputs are not supported. - Output frame rate: Follow source is not supported. - Multiple output frame rates: When you specify multiple outputs, we recommend they share a similar frame rate (as in X/3, X/2, X, or 2X). For example: 5, 15, 30 and 60. Or: 25 and 50. (Outputs must share an integer multiple.) - Output audio codec: Specify Advanced Audio Coding (AAC). - Output sample rate: Choose 48kHz.
        public let segmentLengthControl: DashIsoSegmentLengthControl?
        /// Specify the video sample composition time offset mode in the output fMP4 TRUN box. For wider player compatibility, set Video composition offsets to Unsigned or leave blank. The earliest presentation time may be greater than zero, and sample composition time offsets will increment using unsigned integers. For strict fMP4 video and audio timing, set Video composition offsets to Signed. The earliest presentation time will be equal to zero, and sample composition time offsets will increment using signed integers.
        public let videoCompositionOffsets: DashIsoVideoCompositionOffsets?
        /// If you get an HTTP error in the 400 range when you play back your DASH output, enable this setting and run your transcoding job again. When you enable this setting, the service writes precise segment durations in the DASH manifest. The segment duration information appears inside the SegmentTimeline element, inside SegmentTemplate at the Representation level. When you don't enable this setting, the service writes approximate segment durations in your DASH manifest.
        public let writeSegmentTimelineInRepresentation: DashIsoWriteSegmentTimelineInRepresentation?

        @inlinable
        public init(additionalManifests: [DashAdditionalManifest]? = nil, audioChannelConfigSchemeIdUri: DashIsoGroupAudioChannelConfigSchemeIdUri? = nil, baseUrl: String? = nil, dashIFrameTrickPlayNameModifier: String? = nil, dashManifestStyle: DashManifestStyle? = nil, destination: String? = nil, destinationSettings: DestinationSettings? = nil, encryption: DashIsoEncryptionSettings? = nil, fragmentLength: Int? = nil, hbbtvCompliance: DashIsoHbbtvCompliance? = nil, imageBasedTrickPlay: DashIsoImageBasedTrickPlay? = nil, imageBasedTrickPlaySettings: DashIsoImageBasedTrickPlaySettings? = nil, minBufferTime: Int? = nil, minFinalSegmentLength: Double? = nil, mpdManifestBandwidthType: DashIsoMpdManifestBandwidthType? = nil, mpdProfile: DashIsoMpdProfile? = nil, ptsOffsetHandlingForBFrames: DashIsoPtsOffsetHandlingForBFrames? = nil, segmentControl: DashIsoSegmentControl? = nil, segmentLength: Int? = nil, segmentLengthControl: DashIsoSegmentLengthControl? = nil, videoCompositionOffsets: DashIsoVideoCompositionOffsets? = nil, writeSegmentTimelineInRepresentation: DashIsoWriteSegmentTimelineInRepresentation? = nil) {
            self.additionalManifests = additionalManifests
            self.audioChannelConfigSchemeIdUri = audioChannelConfigSchemeIdUri
            self.baseUrl = baseUrl
            self.dashIFrameTrickPlayNameModifier = dashIFrameTrickPlayNameModifier
            self.dashManifestStyle = dashManifestStyle
            self.destination = destination
            self.destinationSettings = destinationSettings
            self.encryption = encryption
            self.fragmentLength = fragmentLength
            self.hbbtvCompliance = hbbtvCompliance
            self.imageBasedTrickPlay = imageBasedTrickPlay
            self.imageBasedTrickPlaySettings = imageBasedTrickPlaySettings
            self.minBufferTime = minBufferTime
            self.minFinalSegmentLength = minFinalSegmentLength
            self.mpdManifestBandwidthType = mpdManifestBandwidthType
            self.mpdProfile = mpdProfile
            self.ptsOffsetHandlingForBFrames = ptsOffsetHandlingForBFrames
            self.segmentControl = segmentControl
            self.segmentLength = segmentLength
            self.segmentLengthControl = segmentLengthControl
            self.videoCompositionOffsets = videoCompositionOffsets
            self.writeSegmentTimelineInRepresentation = writeSegmentTimelineInRepresentation
        }

        public func validate(name: String) throws {
            try self.additionalManifests?.forEach {
                try $0.validate(name: "\(name).additionalManifests[]")
            }
            try self.validate(self.dashIFrameTrickPlayNameModifier, name: "dashIFrameTrickPlayNameModifier", parent: name, max: 256)
            try self.validate(self.dashIFrameTrickPlayNameModifier, name: "dashIFrameTrickPlayNameModifier", parent: name, min: 1)
            try self.validate(self.destination, name: "destination", parent: name, pattern: "^s3:\\/\\/")
            try self.destinationSettings?.validate(name: "\(name).destinationSettings")
            try self.encryption?.validate(name: "\(name).encryption")
            try self.validate(self.fragmentLength, name: "fragmentLength", parent: name, max: 2147483647)
            try self.validate(self.fragmentLength, name: "fragmentLength", parent: name, min: 1)
            try self.imageBasedTrickPlaySettings?.validate(name: "\(name).imageBasedTrickPlaySettings")
            try self.validate(self.minBufferTime, name: "minBufferTime", parent: name, max: 2147483647)
            try self.validate(self.minBufferTime, name: "minBufferTime", parent: name, min: 0)
            try self.validate(self.segmentLength, name: "segmentLength", parent: name, max: 2147483647)
            try self.validate(self.segmentLength, name: "segmentLength", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case additionalManifests = "additionalManifests"
            case audioChannelConfigSchemeIdUri = "audioChannelConfigSchemeIdUri"
            case baseUrl = "baseUrl"
            case dashIFrameTrickPlayNameModifier = "dashIFrameTrickPlayNameModifier"
            case dashManifestStyle = "dashManifestStyle"
            case destination = "destination"
            case destinationSettings = "destinationSettings"
            case encryption = "encryption"
            case fragmentLength = "fragmentLength"
            case hbbtvCompliance = "hbbtvCompliance"
            case imageBasedTrickPlay = "imageBasedTrickPlay"
            case imageBasedTrickPlaySettings = "imageBasedTrickPlaySettings"
            case minBufferTime = "minBufferTime"
            case minFinalSegmentLength = "minFinalSegmentLength"
            case mpdManifestBandwidthType = "mpdManifestBandwidthType"
            case mpdProfile = "mpdProfile"
            case ptsOffsetHandlingForBFrames = "ptsOffsetHandlingForBFrames"
            case segmentControl = "segmentControl"
            case segmentLength = "segmentLength"
            case segmentLengthControl = "segmentLengthControl"
            case videoCompositionOffsets = "videoCompositionOffsets"
            case writeSegmentTimelineInRepresentation = "writeSegmentTimelineInRepresentation"
        }
    }

    public struct DashIsoImageBasedTrickPlaySettings: AWSEncodableShape & AWSDecodableShape {
        /// The cadence MediaConvert follows for generating thumbnails. If set to FOLLOW_IFRAME, MediaConvert generates thumbnails for each IDR frame in the output (matching the GOP cadence). If set to FOLLOW_CUSTOM, MediaConvert generates thumbnails according to the interval you specify in thumbnailInterval.
        public let intervalCadence: DashIsoIntervalCadence?
        /// Height of each thumbnail within each tile image, in pixels. Leave blank to maintain aspect ratio with thumbnail width. If following the aspect ratio would lead to a total tile height greater than 4096, then the job will be rejected. Must be divisible by 2.
        public let thumbnailHeight: Int?
        /// Enter the interval, in seconds, that MediaConvert uses to generate thumbnails. If the interval you enter doesn't align with the output frame rate, MediaConvert automatically rounds the interval to align with the output frame rate. For example, if the output frame rate is 29.97 frames per second and you enter 5, MediaConvert uses a 150 frame interval to generate thumbnails.
        public let thumbnailInterval: Double?
        /// Width of each thumbnail within each tile image, in pixels. Default is 312. Must be divisible by 8.
        public let thumbnailWidth: Int?
        /// Number of thumbnails in each column of a tile image. Set a value between 2 and 2048. Must be divisible by 2.
        public let tileHeight: Int?
        /// Number of thumbnails in each row of a tile image. Set a value between 1 and 512.
        public let tileWidth: Int?

        @inlinable
        public init(intervalCadence: DashIsoIntervalCadence? = nil, thumbnailHeight: Int? = nil, thumbnailInterval: Double? = nil, thumbnailWidth: Int? = nil, tileHeight: Int? = nil, tileWidth: Int? = nil) {
            self.intervalCadence = intervalCadence
            self.thumbnailHeight = thumbnailHeight
            self.thumbnailInterval = thumbnailInterval
            self.thumbnailWidth = thumbnailWidth
            self.tileHeight = tileHeight
            self.tileWidth = tileWidth
        }

        public func validate(name: String) throws {
            try self.validate(self.thumbnailHeight, name: "thumbnailHeight", parent: name, max: 4096)
            try self.validate(self.thumbnailHeight, name: "thumbnailHeight", parent: name, min: 1)
            try self.validate(self.thumbnailWidth, name: "thumbnailWidth", parent: name, max: 4096)
            try self.validate(self.thumbnailWidth, name: "thumbnailWidth", parent: name, min: 8)
            try self.validate(self.tileHeight, name: "tileHeight", parent: name, max: 2048)
            try self.validate(self.tileHeight, name: "tileHeight", parent: name, min: 1)
            try self.validate(self.tileWidth, name: "tileWidth", parent: name, max: 512)
            try self.validate(self.tileWidth, name: "tileWidth", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case intervalCadence = "intervalCadence"
            case thumbnailHeight = "thumbnailHeight"
            case thumbnailInterval = "thumbnailInterval"
            case thumbnailWidth = "thumbnailWidth"
            case tileHeight = "tileHeight"
            case tileWidth = "tileWidth"
        }
    }

    public struct DataProperties: AWSDecodableShape {
        /// The language code of the data track, in three character ISO 639-3 format.
        public let languageCode: String?

        @inlinable
        public init(languageCode: String? = nil) {
            self.languageCode = languageCode
        }

        private enum CodingKeys: String, CodingKey {
            case languageCode = "languageCode"
        }
    }

    public struct Deinterlacer: AWSEncodableShape & AWSDecodableShape {
        /// Only applies when you set Deinterlace mode to Deinterlace or Adaptive. Interpolate produces sharper pictures, while blend produces smoother motion. If your source file includes a ticker, such as a scrolling headline at the bottom of the frame: Choose Interpolate ticker or Blend ticker. To apply field doubling: Choose Linear interpolation. Note that Linear interpolation may introduce video artifacts into your output.
        public let algorithm: DeinterlaceAlgorithm?
        /// - When set to NORMAL (default), the deinterlacer does not convert frames that are tagged in metadata as progressive. It will only convert those that are tagged as some other type. - When set to FORCE_ALL_FRAMES, the deinterlacer converts every frame to progressive - even those that are already tagged as progressive. Turn Force mode on only if there is a good chance that the metadata has tagged frames as progressive when they are not progressive. Do not turn on otherwise; processing frames that are already progressive into progressive will probably result in lower quality video.
        public let control: DeinterlacerControl?
        /// Use Deinterlacer to choose how the service will do deinterlacing. Default is Deinterlace.
        /// - Deinterlace converts interlaced to progressive.
        /// - Inverse telecine converts Hard Telecine 29.97i to progressive 23.976p.
        /// - Adaptive auto-detects and converts to progressive.
        public let mode: DeinterlacerMode?

        @inlinable
        public init(algorithm: DeinterlaceAlgorithm? = nil, control: DeinterlacerControl? = nil, mode: DeinterlacerMode? = nil) {
            self.algorithm = algorithm
            self.control = control
            self.mode = mode
        }

        private enum CodingKeys: String, CodingKey {
            case algorithm = "algorithm"
            case control = "control"
            case mode = "mode"
        }
    }

    public struct DeleteJobTemplateRequest: AWSEncodableShape {
        /// The name of the job template to be deleted.
        public let name: String

        @inlinable
        public init(name: String) {
            self.name = name
        }

        public func encode(to encoder: Encoder) throws {
            let request = encoder.userInfo[.awsRequest]! as! RequestEncodingContainer
            _ = encoder.container(keyedBy: CodingKeys.self)
            request.encodePath(self.name, key: "Name")
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct DeleteJobTemplateResponse: AWSDecodableShape {
        public init() {}
    }

    public struct DeletePolicyRequest: AWSEncodableShape {
        public init() {}
    }

    public struct DeletePolicyResponse: AWSDecodableShape {
        public init() {}
    }

    public struct DeletePresetRequest: AWSEncodableShape {
        /// The name of the preset to be deleted.
        public let name: String

        @inlinable
        public init(name: String) {
            self.name = name
        }

        public func encode(to encoder: Encoder) throws {
            let request = encoder.userInfo[.awsRequest]! as! RequestEncodingContainer
            _ = encoder.container(keyedBy: CodingKeys.self)
            request.encodePath(self.name, key: "Name")
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct DeletePresetResponse: AWSDecodableShape {
        public init() {}
    }

    public struct DeleteQueueRequest: AWSEncodableShape {
        /// The name of the queue that you want to delete.
        public let name: String

        @inlinable
        public init(name: String) {
            self.name = name
        }

        public func encode(to encoder: Encoder) throws {
            let request = encoder.userInfo[.awsRequest]! as! RequestEncodingContainer
            _ = encoder.container(keyedBy: CodingKeys.self)
            request.encodePath(self.name, key: "Name")
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct DeleteQueueResponse: AWSDecodableShape {
        public init() {}
    }

    public struct DescribeEndpointsRequest: AWSEncodableShape {
        /// Optional. Max number of endpoints, up to twenty, that will be returned at one time.
        public let maxResults: Int?
        /// Optional field, defaults to DEFAULT. Specify DEFAULT for this operation to return your endpoints if any exist, or to create an endpoint for you and return it if one doesn't already exist. Specify GET_ONLY to return your endpoints if any exist, or an empty list if none exist.
        public let mode: DescribeEndpointsMode?
        /// Use this string, provided with the response to a previous request, to request the next batch of endpoints.
        public let nextToken: String?

        @inlinable
        public init(maxResults: Int? = nil, mode: DescribeEndpointsMode? = nil, nextToken: String? = nil) {
            self.maxResults = maxResults
            self.mode = mode
            self.nextToken = nextToken
        }

        private enum CodingKeys: String, CodingKey {
            case maxResults = "maxResults"
            case mode = "mode"
            case nextToken = "nextToken"
        }
    }

    public struct DescribeEndpointsResponse: AWSDecodableShape {
        /// List of endpoints
        public let endpoints: [Endpoint]?
        /// Use this string to request the next batch of endpoints.
        public let nextToken: String?

        @inlinable
        public init(endpoints: [Endpoint]? = nil, nextToken: String? = nil) {
            self.endpoints = endpoints
            self.nextToken = nextToken
        }

        private enum CodingKeys: String, CodingKey {
            case endpoints = "endpoints"
            case nextToken = "nextToken"
        }
    }

    public struct DestinationSettings: AWSEncodableShape & AWSDecodableShape {
        /// Settings associated with S3 destination
        public let s3Settings: S3DestinationSettings?

        @inlinable
        public init(s3Settings: S3DestinationSettings? = nil) {
            self.s3Settings = s3Settings
        }

        public func validate(name: String) throws {
            try self.s3Settings?.validate(name: "\(name).s3Settings")
        }

        private enum CodingKeys: String, CodingKey {
            case s3Settings = "s3Settings"
        }
    }

    public struct DisassociateCertificateRequest: AWSEncodableShape {
        /// The ARN of the ACM certificate that you want to disassociate from your MediaConvert resource.
        public let arn: String

        @inlinable
        public init(arn: String) {
            self.arn = arn
        }

        public func encode(to encoder: Encoder) throws {
            let request = encoder.userInfo[.awsRequest]! as! RequestEncodingContainer
            _ = encoder.container(keyedBy: CodingKeys.self)
            request.encodePath(self.arn, key: "Arn")
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct DisassociateCertificateResponse: AWSDecodableShape {
        public init() {}
    }

    public struct DolbyVision: AWSEncodableShape & AWSDecodableShape {
        /// Use these settings when you set DolbyVisionLevel6Mode to SPECIFY to override the MaxCLL and MaxFALL values in your input with new values.
        public let l6Metadata: DolbyVisionLevel6Metadata?
        /// Use Dolby Vision Mode to choose how the service will handle Dolby Vision MaxCLL and MaxFALL properies.
        public let l6Mode: DolbyVisionLevel6Mode?
        /// Required when you set Dolby Vision Profile to Profile 8.1. When you set Content mapping to None, content mapping is not applied to the HDR10-compatible signal. Depending on the source peak nit level, clipping might occur on HDR devices without Dolby Vision. When you set Content mapping to HDR10 1000, the transcoder creates a 1,000 nits peak HDR10-compatible signal by applying static content mapping to the source. This mode is speed-optimized for PQ10 sources with metadata that is created from analysis. For graded Dolby Vision content, be aware that creative intent might not be guaranteed with extreme 1,000 nits trims.
        public let mapping: DolbyVisionMapping?
        /// Required when you enable Dolby Vision. Use Profile 5 to include frame-interleaved Dolby Vision metadata in your output. Your input must include Dolby Vision metadata or an HDR10 YUV color space. Use Profile 8.1 to include frame-interleaved Dolby Vision metadata and HDR10 metadata in your output. Your input must include Dolby Vision metadata.
        public let profile: DolbyVisionProfile?

        @inlinable
        public init(l6Metadata: DolbyVisionLevel6Metadata? = nil, l6Mode: DolbyVisionLevel6Mode? = nil, mapping: DolbyVisionMapping? = nil, profile: DolbyVisionProfile? = nil) {
            self.l6Metadata = l6Metadata
            self.l6Mode = l6Mode
            self.mapping = mapping
            self.profile = profile
        }

        public func validate(name: String) throws {
            try self.l6Metadata?.validate(name: "\(name).l6Metadata")
        }

        private enum CodingKeys: String, CodingKey {
            case l6Metadata = "l6Metadata"
            case l6Mode = "l6Mode"
            case mapping = "mapping"
            case profile = "profile"
        }
    }

    public struct DolbyVisionLevel6Metadata: AWSEncodableShape & AWSDecodableShape {
        /// Maximum Content Light Level. Static HDR metadata that corresponds to the brightest pixel in the entire stream. Measured in nits.
        public let maxCll: Int?
        /// Maximum Frame-Average Light Level. Static HDR metadata that corresponds to the highest frame-average brightness in the entire stream. Measured in nits.
        public let maxFall: Int?

        @inlinable
        public init(maxCll: Int? = nil, maxFall: Int? = nil) {
            self.maxCll = maxCll
            self.maxFall = maxFall
        }

        public func validate(name: String) throws {
            try self.validate(self.maxCll, name: "maxCll", parent: name, max: 65535)
            try self.validate(self.maxCll, name: "maxCll", parent: name, min: 0)
            try self.validate(self.maxFall, name: "maxFall", parent: name, max: 65535)
            try self.validate(self.maxFall, name: "maxFall", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case maxCll = "maxCll"
            case maxFall = "maxFall"
        }
    }

    public struct DvbNitSettings: AWSEncodableShape & AWSDecodableShape {
        /// The numeric value placed in the Network Information Table (NIT).
        public let networkId: Int?
        /// The network name text placed in the network_name_descriptor inside the Network Information Table. Maximum length is 256 characters.
        public let networkName: String?
        /// The number of milliseconds between instances of this table in the output transport stream.
        public let nitInterval: Int?

        @inlinable
        public init(networkId: Int? = nil, networkName: String? = nil, nitInterval: Int? = nil) {
            self.networkId = networkId
            self.networkName = networkName
            self.nitInterval = nitInterval
        }

        public func validate(name: String) throws {
            try self.validate(self.networkId, name: "networkId", parent: name, max: 65535)
            try self.validate(self.networkId, name: "networkId", parent: name, min: 0)
            try self.validate(self.networkName, name: "networkName", parent: name, max: 256)
            try self.validate(self.networkName, name: "networkName", parent: name, min: 1)
            try self.validate(self.nitInterval, name: "nitInterval", parent: name, max: 10000)
            try self.validate(self.nitInterval, name: "nitInterval", parent: name, min: 25)
        }

        private enum CodingKeys: String, CodingKey {
            case networkId = "networkId"
            case networkName = "networkName"
            case nitInterval = "nitInterval"
        }
    }

    public struct DvbSdtSettings: AWSEncodableShape & AWSDecodableShape {
        /// Selects method of inserting SDT information into output stream. "Follow input SDT" copies SDT information from input stream to output stream. "Follow input SDT if present" copies SDT information from input stream to output stream if SDT information is present in the input, otherwise it will fall back on the user-defined values. Enter "SDT Manually" means user will enter the SDT information. "No SDT" means output stream will not contain SDT information.
        public let outputSdt: OutputSdt?
        /// The number of milliseconds between instances of this table in the output transport stream.
        public let sdtInterval: Int?
        /// The service name placed in the service_descriptor in the Service Description Table. Maximum length is 256 characters.
        public let serviceName: String?
        /// The service provider name placed in the service_descriptor in the Service Description Table. Maximum length is 256 characters.
        public let serviceProviderName: String?

        @inlinable
        public init(outputSdt: OutputSdt? = nil, sdtInterval: Int? = nil, serviceName: String? = nil, serviceProviderName: String? = nil) {
            self.outputSdt = outputSdt
            self.sdtInterval = sdtInterval
            self.serviceName = serviceName
            self.serviceProviderName = serviceProviderName
        }

        public func validate(name: String) throws {
            try self.validate(self.sdtInterval, name: "sdtInterval", parent: name, max: 2000)
            try self.validate(self.sdtInterval, name: "sdtInterval", parent: name, min: 25)
            try self.validate(self.serviceName, name: "serviceName", parent: name, max: 256)
            try self.validate(self.serviceName, name: "serviceName", parent: name, min: 1)
            try self.validate(self.serviceProviderName, name: "serviceProviderName", parent: name, max: 256)
            try self.validate(self.serviceProviderName, name: "serviceProviderName", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case outputSdt = "outputSdt"
            case sdtInterval = "sdtInterval"
            case serviceName = "serviceName"
            case serviceProviderName = "serviceProviderName"
        }
    }

    public struct DvbSubDestinationSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify the alignment of your captions. If no explicit x_position is provided, setting alignment to centered will placethe captions at the bottom center of the output. Similarly, setting a left alignment willalign captions to the bottom left of the output. If x and y positions are given in conjunction with the alignment parameter, the font will be justified (either left or centered) relative to those coordinates. Within your job settings, all of your DVB-Sub settings must be identical.
        public let alignment: DvbSubtitleAlignment?
        /// Ignore this setting unless Style Passthrough is set to Enabled and Font color set to Black, Yellow, Red, Green, Blue, or Hex. Use Apply font color for additional font color controls. When you choose White text only, or leave blank, your font color setting only applies to white text in your input captions. For example, if your font color setting is Yellow, and your input captions have red and white text, your output captions will have red and yellow text. When you choose ALL_TEXT, your font color setting applies to all of your output captions text.
        public let applyFontColor: DvbSubtitleApplyFontColor?
        /// Specify the color of the rectangle behind the captions. Leave background color blank and set Style passthrough to enabled to use the background color data from your input captions, if present.
        public let backgroundColor: DvbSubtitleBackgroundColor?
        /// Specify the opacity of the background rectangle. Enter a value from 0 to 255, where 0 is transparent and 255 is opaque. If Style passthrough is set to enabled, leave blank to pass through the background style information in your input captions to your output captions. If Style passthrough is set to disabled, leave blank to use a value of 0 and remove all backgrounds from your output captions. Within your job settings, all of your DVB-Sub settings must be identical.
        public let backgroundOpacity: Int?
        /// Specify how MediaConvert handles the display definition segment (DDS). To exclude the DDS from this set of captions: Keep the default, None. To include the DDS: Choose Specified. When you do, also specify the offset coordinates of the display window with DDS x-coordinate and DDS y-coordinate. To include the DDS, but not include display window data: Choose No display window. When you do, you can write position metadata to the page composition segment (PCS) with DDS x-coordinate and DDS y-coordinate. For video resolutions with a height of 576 pixels or less, MediaConvert doesn't include the DDS, regardless of the value you choose for DDS handling. All burn-in and DVB-Sub font settings must match. To include the DDS, with optimized subtitle placement and reduced data overhead: We recommend that you choose Specified (optimal). This option provides the same visual positioning as Specified while using less bandwidth. This also supports resolutions higher than 1080p while maintaining full DVB-Sub compatibility. When you do, also specify the offset coordinates of the display window with DDS x-coordinate and DDS y-coordinate.
        public let ddsHandling: DvbddsHandling?
        /// Use this setting, along with DDS y-coordinate, to specify the upper left corner of the display definition segment (DDS) display window. With this setting, specify the distance, in pixels, between the left side of the frame and the left side of the DDS display window. Keep the default value, 0, to have MediaConvert automatically choose this offset. Related setting: When you use this setting, you must set DDS handling to a value other than None. MediaConvert uses these values to determine whether to write page position data to the DDS or to the page composition segment. All burn-in and DVB-Sub font settings must match.
        public let ddsXCoordinate: Int?
        /// Use this setting, along with DDS x-coordinate, to specify the upper left corner of the display definition segment (DDS) display window. With this setting, specify the distance, in pixels, between the top of the frame and the top of the DDS display window. Keep the default value, 0, to have MediaConvert automatically choose this offset. Related setting: When you use this setting, you must set DDS handling to a value other than None. MediaConvert uses these values to determine whether to write page position data to the DDS or to the page composition segment (PCS). All burn-in and DVB-Sub font settings must match.
        public let ddsYCoordinate: Int?
        /// Specify the font that you want the service to use for your burn in captions when your input captions specify a font that MediaConvert doesn't support. When you set Fallback font to best match, or leave blank, MediaConvert uses a supported font that most closely matches the font that your input captions specify. When there are multiple unsupported fonts in your input captions, MediaConvert matches each font with the supported font that matches best. When you explicitly choose a replacement font, MediaConvert uses that font to replace all unsupported fonts from your input.
        public let fallbackFont: DvbSubSubtitleFallbackFont?
        /// Specify the color of the captions text. Leave Font color blank and set Style passthrough to enabled to use the font color data from your input captions, if present. Within your job settings, all of your DVB-Sub settings must be identical.
        public let fontColor: DvbSubtitleFontColor?
        /// Specify a bold TrueType font file to use when rendering your output captions. Enter an S3, HTTP, or HTTPS URL. When you do, you must also separately specify a regular, an italic, and a bold italic font file.
        public let fontFileBold: String?
        /// Specify a bold italic TrueType font file to use when rendering your output captions.
        /// Enter an S3, HTTP, or HTTPS URL.
        /// When you do, you must also separately specify a regular, a bold, and an italic font file.
        public let fontFileBoldItalic: String?
        /// Specify an italic TrueType font file to use when rendering your output captions. Enter an S3, HTTP, or HTTPS URL. When you do, you must also separately specify a regular, a bold, and a bold italic font file.
        public let fontFileItalic: String?
        /// Specify a regular TrueType font file to use when rendering your output captions. Enter an S3, HTTP, or HTTPS URL. When you do, you must also separately specify a bold, an italic, and a bold italic font file.
        public let fontFileRegular: String?
        /// Specify the opacity of the burned-in captions. 255 is opaque; 0 is transparent.
        /// Within your job settings, all of your DVB-Sub settings must be identical.
        public let fontOpacity: Int?
        /// Specify the Font resolution in DPI (dots per inch).
        /// Within your job settings, all of your DVB-Sub settings must be identical.
        public let fontResolution: Int?
        /// Set Font script to Automatically determined, or leave blank, to automatically determine the font script in your input captions. Otherwise, set to Simplified Chinese (HANS) or Traditional Chinese (HANT) if your input font script uses Simplified or Traditional Chinese. Within your job settings, all of your DVB-Sub settings must be identical.
        public let fontScript: FontScript?
        /// Specify the Font size in pixels. Must be a positive integer. Set to 0, or leave blank, for automatic font size. Within your job settings, all of your DVB-Sub settings must be identical.
        public let fontSize: Int?
        /// Specify the height, in pixels, of this set of DVB-Sub captions. The default value is 576 pixels. Related setting: When you use this setting, you must set DDS handling to a value other than None. All burn-in and DVB-Sub font settings must match.
        public let height: Int?
        /// Ignore this setting unless your Font color is set to Hex. Enter either six or eight hexidecimal digits, representing red, green, and blue, with two optional extra digits for alpha. For example a value of 1122AABB is a red value of 0x11, a green value of 0x22, a blue value of 0xAA, and an alpha value of 0xBB.
        public let hexFontColor: String?
        /// Specify font outline color. Leave Outline color blank and set Style passthrough to enabled to use the font outline color data from your input captions, if present. Within your job settings, all of your DVB-Sub settings must be identical.
        public let outlineColor: DvbSubtitleOutlineColor?
        /// Specify the Outline size of the caption text, in pixels. Leave Outline size blank and set Style passthrough to enabled to use the outline size data from your input captions, if present. Within your job settings, all of your DVB-Sub settings must be identical.
        public let outlineSize: Int?
        /// Specify the color of the shadow cast by the captions. Leave Shadow color blank and set Style passthrough to enabled to use the shadow color data from your input captions, if present. Within your job settings, all of your DVB-Sub settings must be identical.
        public let shadowColor: DvbSubtitleShadowColor?
        /// Specify the opacity of the shadow. Enter a value from 0 to 255, where 0 is transparent and 255 is opaque. If Style passthrough is set to Enabled, leave Shadow opacity blank to pass through the shadow style information in your input captions to your output captions. If Style passthrough is set to disabled, leave blank to use a value of 0 and remove all shadows from your output captions. Within your job settings, all of your DVB-Sub settings must be identical.
        public let shadowOpacity: Int?
        /// Specify the horizontal offset of the shadow, relative to the captions in pixels. A value of -2 would result in a shadow offset 2 pixels to the left. Within your job settings, all of your DVB-Sub settings must be identical.
        public let shadowXOffset: Int?
        /// Specify the vertical offset of the shadow relative to the captions in pixels. A value of -2 would result in a shadow offset 2 pixels above the text. Leave Shadow y-offset blank and set Style passthrough to enabled to use the shadow y-offset data from your input captions, if present. Within your job settings, all of your DVB-Sub settings must be identical.
        public let shadowYOffset: Int?
        /// To use the available style, color, and position information from your input captions: Set Style passthrough to Enabled. Note that MediaConvert uses default settings for any missing style or position information in your input captions To ignore the style and position information from your input captions and use default settings: Leave blank or keep the default value, Disabled. Default settings include white text with black outlining, bottom-center positioning, and automatic sizing. Whether you set Style passthrough to enabled or not, you can also choose to manually override any of the individual style and position settings. You can also override any fonts by manually specifying custom font files.
        public let stylePassthrough: DvbSubtitleStylePassthrough?
        /// Specify whether your DVB subtitles are standard or for hearing impaired. Choose hearing impaired if your subtitles include audio descriptions and dialogue. Choose standard if your subtitles include only dialogue.
        public let subtitlingType: DvbSubtitlingType?
        /// Specify whether the Text spacing in your captions is set by the captions grid, or varies depending on letter width. Choose fixed grid to conform to the spacing specified in the captions file more accurately. Choose proportional to make the text easier to read for closed captions. Within your job settings, all of your DVB-Sub settings must be identical.
        public let teletextSpacing: DvbSubtitleTeletextSpacing?
        /// Specify the width, in pixels, of this set of DVB-Sub captions. The default value is 720 pixels. Related setting: When you use this setting, you must set DDS handling to a value other than None. All burn-in and DVB-Sub font settings must match.
        public let width: Int?
        /// Specify the horizontal position of the captions, relative to the left side of the output in pixels. A value of 10 would result in the captions starting 10 pixels from the left of the output. If no explicit x_position is provided, the horizontal caption position will be determined by the alignment parameter. Within your job settings, all of your DVB-Sub settings must be identical.
        public let xPosition: Int?
        /// Specify the vertical position of the captions, relative to the top of the output in pixels. A value of 10 would result in the captions starting 10 pixels from the top of the output. If no explicit y_position is provided, the caption will be positioned towards the bottom of the output. Within your job settings, all of your DVB-Sub settings must be identical.
        public let yPosition: Int?

        @inlinable
        public init(alignment: DvbSubtitleAlignment? = nil, applyFontColor: DvbSubtitleApplyFontColor? = nil, backgroundColor: DvbSubtitleBackgroundColor? = nil, backgroundOpacity: Int? = nil, ddsHandling: DvbddsHandling? = nil, ddsXCoordinate: Int? = nil, ddsYCoordinate: Int? = nil, fallbackFont: DvbSubSubtitleFallbackFont? = nil, fontColor: DvbSubtitleFontColor? = nil, fontFileBold: String? = nil, fontFileBoldItalic: String? = nil, fontFileItalic: String? = nil, fontFileRegular: String? = nil, fontOpacity: Int? = nil, fontResolution: Int? = nil, fontScript: FontScript? = nil, fontSize: Int? = nil, height: Int? = nil, hexFontColor: String? = nil, outlineColor: DvbSubtitleOutlineColor? = nil, outlineSize: Int? = nil, shadowColor: DvbSubtitleShadowColor? = nil, shadowOpacity: Int? = nil, shadowXOffset: Int? = nil, shadowYOffset: Int? = nil, stylePassthrough: DvbSubtitleStylePassthrough? = nil, subtitlingType: DvbSubtitlingType? = nil, teletextSpacing: DvbSubtitleTeletextSpacing? = nil, width: Int? = nil, xPosition: Int? = nil, yPosition: Int? = nil) {
            self.alignment = alignment
            self.applyFontColor = applyFontColor
            self.backgroundColor = backgroundColor
            self.backgroundOpacity = backgroundOpacity
            self.ddsHandling = ddsHandling
            self.ddsXCoordinate = ddsXCoordinate
            self.ddsYCoordinate = ddsYCoordinate
            self.fallbackFont = fallbackFont
            self.fontColor = fontColor
            self.fontFileBold = fontFileBold
            self.fontFileBoldItalic = fontFileBoldItalic
            self.fontFileItalic = fontFileItalic
            self.fontFileRegular = fontFileRegular
            self.fontOpacity = fontOpacity
            self.fontResolution = fontResolution
            self.fontScript = fontScript
            self.fontSize = fontSize
            self.height = height
            self.hexFontColor = hexFontColor
            self.outlineColor = outlineColor
            self.outlineSize = outlineSize
            self.shadowColor = shadowColor
            self.shadowOpacity = shadowOpacity
            self.shadowXOffset = shadowXOffset
            self.shadowYOffset = shadowYOffset
            self.stylePassthrough = stylePassthrough
            self.subtitlingType = subtitlingType
            self.teletextSpacing = teletextSpacing
            self.width = width
            self.xPosition = xPosition
            self.yPosition = yPosition
        }

        public func validate(name: String) throws {
            try self.validate(self.backgroundOpacity, name: "backgroundOpacity", parent: name, max: 255)
            try self.validate(self.backgroundOpacity, name: "backgroundOpacity", parent: name, min: 0)
            try self.validate(self.ddsXCoordinate, name: "ddsXCoordinate", parent: name, max: 2147483647)
            try self.validate(self.ddsXCoordinate, name: "ddsXCoordinate", parent: name, min: 0)
            try self.validate(self.ddsYCoordinate, name: "ddsYCoordinate", parent: name, max: 2147483647)
            try self.validate(self.ddsYCoordinate, name: "ddsYCoordinate", parent: name, min: 0)
            try self.validate(self.fontFileBold, name: "fontFileBold", parent: name, pattern: "^((s3://(.*?)\\.(ttf))|(https?://(.*?)\\.(ttf)(\\?([^&=]+=[^&]+&)*[^&=]+=[^&]+)?))$")
            try self.validate(self.fontFileBoldItalic, name: "fontFileBoldItalic", parent: name, pattern: "^((s3://(.*?)\\.(ttf))|(https?://(.*?)\\.(ttf)(\\?([^&=]+=[^&]+&)*[^&=]+=[^&]+)?))$")
            try self.validate(self.fontFileItalic, name: "fontFileItalic", parent: name, pattern: "^((s3://(.*?)\\.(ttf))|(https?://(.*?)\\.(ttf)(\\?([^&=]+=[^&]+&)*[^&=]+=[^&]+)?))$")
            try self.validate(self.fontFileRegular, name: "fontFileRegular", parent: name, pattern: "^((s3://(.*?)\\.(ttf))|(https?://(.*?)\\.(ttf)(\\?([^&=]+=[^&]+&)*[^&=]+=[^&]+)?))$")
            try self.validate(self.fontOpacity, name: "fontOpacity", parent: name, max: 255)
            try self.validate(self.fontOpacity, name: "fontOpacity", parent: name, min: 0)
            try self.validate(self.fontResolution, name: "fontResolution", parent: name, max: 600)
            try self.validate(self.fontResolution, name: "fontResolution", parent: name, min: 96)
            try self.validate(self.fontSize, name: "fontSize", parent: name, max: 96)
            try self.validate(self.fontSize, name: "fontSize", parent: name, min: 0)
            try self.validate(self.height, name: "height", parent: name, max: 2147483647)
            try self.validate(self.height, name: "height", parent: name, min: 1)
            try self.validate(self.hexFontColor, name: "hexFontColor", parent: name, max: 8)
            try self.validate(self.hexFontColor, name: "hexFontColor", parent: name, min: 6)
            try self.validate(self.hexFontColor, name: "hexFontColor", parent: name, pattern: "^[0-9a-fA-F]{6}([0-9a-fA-F]{2})?$")
            try self.validate(self.outlineSize, name: "outlineSize", parent: name, max: 10)
            try self.validate(self.outlineSize, name: "outlineSize", parent: name, min: 0)
            try self.validate(self.shadowOpacity, name: "shadowOpacity", parent: name, max: 255)
            try self.validate(self.shadowOpacity, name: "shadowOpacity", parent: name, min: 0)
            try self.validate(self.shadowXOffset, name: "shadowXOffset", parent: name, max: 2147483647)
            try self.validate(self.shadowXOffset, name: "shadowXOffset", parent: name, min: -2147483648)
            try self.validate(self.shadowYOffset, name: "shadowYOffset", parent: name, max: 2147483647)
            try self.validate(self.shadowYOffset, name: "shadowYOffset", parent: name, min: -2147483648)
            try self.validate(self.width, name: "width", parent: name, max: 2147483647)
            try self.validate(self.width, name: "width", parent: name, min: 1)
            try self.validate(self.xPosition, name: "xPosition", parent: name, max: 2147483647)
            try self.validate(self.xPosition, name: "xPosition", parent: name, min: 0)
            try self.validate(self.yPosition, name: "yPosition", parent: name, max: 2147483647)
            try self.validate(self.yPosition, name: "yPosition", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case alignment = "alignment"
            case applyFontColor = "applyFontColor"
            case backgroundColor = "backgroundColor"
            case backgroundOpacity = "backgroundOpacity"
            case ddsHandling = "ddsHandling"
            case ddsXCoordinate = "ddsXCoordinate"
            case ddsYCoordinate = "ddsYCoordinate"
            case fallbackFont = "fallbackFont"
            case fontColor = "fontColor"
            case fontFileBold = "fontFileBold"
            case fontFileBoldItalic = "fontFileBoldItalic"
            case fontFileItalic = "fontFileItalic"
            case fontFileRegular = "fontFileRegular"
            case fontOpacity = "fontOpacity"
            case fontResolution = "fontResolution"
            case fontScript = "fontScript"
            case fontSize = "fontSize"
            case height = "height"
            case hexFontColor = "hexFontColor"
            case outlineColor = "outlineColor"
            case outlineSize = "outlineSize"
            case shadowColor = "shadowColor"
            case shadowOpacity = "shadowOpacity"
            case shadowXOffset = "shadowXOffset"
            case shadowYOffset = "shadowYOffset"
            case stylePassthrough = "stylePassthrough"
            case subtitlingType = "subtitlingType"
            case teletextSpacing = "teletextSpacing"
            case width = "width"
            case xPosition = "xPosition"
            case yPosition = "yPosition"
        }
    }

    public struct DvbSubSourceSettings: AWSEncodableShape & AWSDecodableShape {
        /// When using DVB-Sub with Burn-in, use this PID for the source content. Unused for DVB-Sub passthrough. All DVB-Sub content is passed through, regardless of selectors.
        public let pid: Int?

        @inlinable
        public init(pid: Int? = nil) {
            self.pid = pid
        }

        public func validate(name: String) throws {
            try self.validate(self.pid, name: "pid", parent: name, max: 2147483647)
            try self.validate(self.pid, name: "pid", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case pid = "pid"
        }
    }

    public struct DvbTdtSettings: AWSEncodableShape & AWSDecodableShape {
        /// The number of milliseconds between instances of this table in the output transport stream.
        public let tdtInterval: Int?

        @inlinable
        public init(tdtInterval: Int? = nil) {
            self.tdtInterval = tdtInterval
        }

        public func validate(name: String) throws {
            try self.validate(self.tdtInterval, name: "tdtInterval", parent: name, max: 30000)
            try self.validate(self.tdtInterval, name: "tdtInterval", parent: name, min: 1000)
        }

        private enum CodingKeys: String, CodingKey {
            case tdtInterval = "tdtInterval"
        }
    }

    public struct DynamicAudioSelector: AWSEncodableShape & AWSDecodableShape {
        /// Apply audio timing corrections to help synchronize audio and video in your output. To apply timing corrections, your input must meet the following requirements: * Container: MP4, or MOV, with an accurate time-to-sample (STTS) table. * Audio track: AAC. Choose from the following audio timing correction settings: * Disabled (Default): Apply no correction. * Auto: Recommended for most inputs. MediaConvert analyzes the audio timing in your input and determines which correction setting to use, if needed. * Track: Adjust the duration of each audio frame by a constant amount to align the audio track length with STTS duration. Track-level correction does not affect pitch, and is recommended for tonal audio content such as music. * Frame: Adjust the duration of each audio frame by a variable amount to align audio frames with STTS timestamps. No corrections are made to already-aligned frames. Frame-level correction may affect the pitch of corrected frames, and is recommended for atonal audio content such as speech or percussion. * Force: Apply audio duration correction, either Track or Frame depending on your input, regardless of the accuracy of your input's STTS table. Your output audio and video may not be aligned or it may contain audio artifacts.
        public let audioDurationCorrection: AudioDurationCorrection?
        /// Specify the S3, HTTP, or HTTPS URL for your external audio file input.
        public let externalAudioFileInput: String?
        /// Specify the language to select from your audio input. In the MediaConvert console choose from a list of languages. In your JSON job settings choose from an ISO 639-2 three-letter code listed at https://www.loc.gov/standards/iso639-2/php/code_list.php
        public let languageCode: LanguageCode?
        /// Specify a time delta, in milliseconds, to offset the audio from the input video.
        /// To specify no offset: Keep the default value, 0.
        /// To specify an offset: Enter an integer from -2147483648 to 2147483647
        public let offset: Int?
        /// Specify which audio tracks to dynamically select from your source. To select all audio tracks: Keep the default value, All tracks. To select all audio tracks with a specific language code: Choose Language code. When you do, you must also specify a language code under the Language code setting. If there is no matching Language code in your source, then no track will be selected.
        public let selectorType: DynamicAudioSelectorType?

        @inlinable
        public init(audioDurationCorrection: AudioDurationCorrection? = nil, externalAudioFileInput: String? = nil, languageCode: LanguageCode? = nil, offset: Int? = nil, selectorType: DynamicAudioSelectorType? = nil) {
            self.audioDurationCorrection = audioDurationCorrection
            self.externalAudioFileInput = externalAudioFileInput
            self.languageCode = languageCode
            self.offset = offset
            self.selectorType = selectorType
        }

        public func validate(name: String) throws {
            try self.validate(self.externalAudioFileInput, name: "externalAudioFileInput", parent: name, pattern: "^s3://([^\\/]+\\/+)+((([^\\/]*)))|^https?://[^\\/].*[^&]$")
            try self.validate(self.offset, name: "offset", parent: name, max: 2147483647)
            try self.validate(self.offset, name: "offset", parent: name, min: -2147483648)
        }

        private enum CodingKeys: String, CodingKey {
            case audioDurationCorrection = "audioDurationCorrection"
            case externalAudioFileInput = "externalAudioFileInput"
            case languageCode = "languageCode"
            case offset = "offset"
            case selectorType = "selectorType"
        }
    }

    public struct Eac3AtmosSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify the average bitrate for this output in bits per second. Valid values: 384k, 448k, 576k, 640k, 768k, 1024k Default value: 448k Note that MediaConvert supports 384k only with channel-based immersive (CBI) 7.1.4 and 5.1.4 inputs. For CBI 9.1.6 and other input types, MediaConvert automatically increases your output bitrate to 448k.
        public let bitrate: Int?
        /// Specify the bitstream mode for the E-AC-3 stream that the encoder emits. For more information about the EAC3 bitstream mode, see ATSC A/52-2012 (Annex E).
        public let bitstreamMode: Eac3AtmosBitstreamMode?
        /// The coding mode for Dolby Digital Plus JOC (Atmos).
        public let codingMode: Eac3AtmosCodingMode?
        /// Enable Dolby Dialogue Intelligence to adjust loudness based on dialogue analysis.
        public let dialogueIntelligence: Eac3AtmosDialogueIntelligence?
        /// Specify whether MediaConvert should use any downmix metadata from your input file. Keep the default value, Custom to provide downmix values in your job settings. Choose Follow source to use the metadata from your input. Related settings--Use these settings to specify your downmix values: Left only/Right only surround, Left total/Right total surround, Left total/Right total center, Left only/Right only center, and Stereo downmix. When you keep Custom for Downmix control and you don't specify values for the related settings, MediaConvert uses default values for those settings.
        public let downmixControl: Eac3AtmosDownmixControl?
        /// Choose the Dolby dynamic range control (DRC) profile that MediaConvert uses when encoding the metadata in the Dolby stream for the line operating mode. Default value: Film light Related setting: To have MediaConvert use the value you specify here, keep the default value, Custom for the setting Dynamic range control. Otherwise, MediaConvert ignores Dynamic range compression line. For information about the Dolby DRC operating modes and profiles, see the Dynamic Range Control chapter of the Dolby Metadata Guide at https://developer.dolby.com/globalassets/professional/documents/dolby-metadata-guide.pdf.
        public let dynamicRangeCompressionLine: Eac3AtmosDynamicRangeCompressionLine?
        /// Choose the Dolby dynamic range control (DRC) profile that MediaConvert uses when encoding the metadata in the Dolby stream for the RF operating mode. Default value: Film light Related setting: To have MediaConvert use the value you specify here, keep the default value, Custom for the setting Dynamic range control. Otherwise, MediaConvert ignores Dynamic range compression RF. For information about the Dolby DRC operating modes and profiles, see the Dynamic Range Control chapter of the Dolby Metadata Guide at https://developer.dolby.com/globalassets/professional/documents/dolby-metadata-guide.pdf.
        public let dynamicRangeCompressionRf: Eac3AtmosDynamicRangeCompressionRf?
        /// Specify whether MediaConvert should use any dynamic range control metadata from your input file. Keep the default value, Custom, to provide dynamic range control values in your job settings. Choose Follow source to use the metadata from your input. Related settings--Use these settings to specify your dynamic range control values: Dynamic range compression line and Dynamic range compression RF. When you keep the value Custom for Dynamic range control and you don't specify values for the related settings, MediaConvert uses default values for those settings.
        public let dynamicRangeControl: Eac3AtmosDynamicRangeControl?
        /// Specify a value for the following Dolby Atmos setting: Left only/Right only center mix (Lo/Ro center). MediaConvert uses this value for downmixing. Default value: -3 dB. Valid values: 3.0, 1.5, 0.0, -1.5, -3.0, -4.5, and -6.0. Related setting: How the service uses this value depends on the value that you choose for Stereo downmix. Related setting: To have MediaConvert use this value, keep the default value, Custom for the setting Downmix control. Otherwise, MediaConvert ignores Left only/Right only center.
        public let loRoCenterMixLevel: Double?
        /// Specify a value for the following Dolby Atmos setting: Left only/Right only. MediaConvert uses this value for downmixing. Default value: -3 dB. Valid values: -1.5, -3.0, -4.5, -6.0, and -60. The value -60 mutes the channel. Related setting: How the service uses this value depends on the value that you choose for Stereo downmix. Related setting: To have MediaConvert use this value, keep the default value, Custom for the setting Downmix control. Otherwise, MediaConvert ignores Left only/Right only surround.
        public let loRoSurroundMixLevel: Double?
        /// Specify a value for the following Dolby Atmos setting: Left total/Right total center mix (Lt/Rt center). MediaConvert uses this value for downmixing. Default value: -3 dB Valid values: 3.0, 1.5, 0.0, -1.5, -3.0, -4.5, and -6.0. Related setting: How the service uses this value depends on the value that you choose for Stereo downmix. Related setting: To have MediaConvert use this value, keep the default value, Custom for the setting Downmix control. Otherwise, MediaConvert ignores Left total/Right total center.
        public let ltRtCenterMixLevel: Double?
        /// Specify a value for the following Dolby Atmos setting: Left total/Right total surround mix (Lt/Rt surround). MediaConvert uses this value for downmixing. Default value: -3 dB Valid values: -1.5, -3.0, -4.5, -6.0, and -60. The value -60 mutes the channel. Related setting: How the service uses this value depends on the value that you choose for Stereo downmix. Related setting: To have MediaConvert use this value, keep the default value, Custom for the setting Downmix control. Otherwise, the service ignores Left total/Right total surround.
        public let ltRtSurroundMixLevel: Double?
        /// Choose how the service meters the loudness of your audio.
        public let meteringMode: Eac3AtmosMeteringMode?
        /// This value is always 48000. It represents the sample rate in Hz.
        public let sampleRate: Int?
        /// Specify the percentage of audio content, from 0% to 100%, that must be speech in order for the encoder to use the measured speech loudness as the overall program loudness. Default value: 15%
        public let speechThreshold: Int?
        /// Choose how the service does stereo downmixing. Default value: Not indicated Related setting: To have MediaConvert use this value, keep the default value, Custom for the setting Downmix control. Otherwise, MediaConvert ignores Stereo downmix.
        public let stereoDownmix: Eac3AtmosStereoDownmix?
        /// Specify whether your input audio has an additional center rear surround channel matrix encoded into your left and right surround channels.
        public let surroundExMode: Eac3AtmosSurroundExMode?

        @inlinable
        public init(bitrate: Int? = nil, bitstreamMode: Eac3AtmosBitstreamMode? = nil, codingMode: Eac3AtmosCodingMode? = nil, dialogueIntelligence: Eac3AtmosDialogueIntelligence? = nil, downmixControl: Eac3AtmosDownmixControl? = nil, dynamicRangeCompressionLine: Eac3AtmosDynamicRangeCompressionLine? = nil, dynamicRangeCompressionRf: Eac3AtmosDynamicRangeCompressionRf? = nil, dynamicRangeControl: Eac3AtmosDynamicRangeControl? = nil, loRoCenterMixLevel: Double? = nil, loRoSurroundMixLevel: Double? = nil, ltRtCenterMixLevel: Double? = nil, ltRtSurroundMixLevel: Double? = nil, meteringMode: Eac3AtmosMeteringMode? = nil, sampleRate: Int? = nil, speechThreshold: Int? = nil, stereoDownmix: Eac3AtmosStereoDownmix? = nil, surroundExMode: Eac3AtmosSurroundExMode? = nil) {
            self.bitrate = bitrate
            self.bitstreamMode = bitstreamMode
            self.codingMode = codingMode
            self.dialogueIntelligence = dialogueIntelligence
            self.downmixControl = downmixControl
            self.dynamicRangeCompressionLine = dynamicRangeCompressionLine
            self.dynamicRangeCompressionRf = dynamicRangeCompressionRf
            self.dynamicRangeControl = dynamicRangeControl
            self.loRoCenterMixLevel = loRoCenterMixLevel
            self.loRoSurroundMixLevel = loRoSurroundMixLevel
            self.ltRtCenterMixLevel = ltRtCenterMixLevel
            self.ltRtSurroundMixLevel = ltRtSurroundMixLevel
            self.meteringMode = meteringMode
            self.sampleRate = sampleRate
            self.speechThreshold = speechThreshold
            self.stereoDownmix = stereoDownmix
            self.surroundExMode = surroundExMode
        }

        public func validate(name: String) throws {
            try self.validate(self.bitrate, name: "bitrate", parent: name, max: 1024000)
            try self.validate(self.bitrate, name: "bitrate", parent: name, min: 384000)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, max: 48000)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, min: 48000)
            try self.validate(self.speechThreshold, name: "speechThreshold", parent: name, max: 100)
            try self.validate(self.speechThreshold, name: "speechThreshold", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case bitrate = "bitrate"
            case bitstreamMode = "bitstreamMode"
            case codingMode = "codingMode"
            case dialogueIntelligence = "dialogueIntelligence"
            case downmixControl = "downmixControl"
            case dynamicRangeCompressionLine = "dynamicRangeCompressionLine"
            case dynamicRangeCompressionRf = "dynamicRangeCompressionRf"
            case dynamicRangeControl = "dynamicRangeControl"
            case loRoCenterMixLevel = "loRoCenterMixLevel"
            case loRoSurroundMixLevel = "loRoSurroundMixLevel"
            case ltRtCenterMixLevel = "ltRtCenterMixLevel"
            case ltRtSurroundMixLevel = "ltRtSurroundMixLevel"
            case meteringMode = "meteringMode"
            case sampleRate = "sampleRate"
            case speechThreshold = "speechThreshold"
            case stereoDownmix = "stereoDownmix"
            case surroundExMode = "surroundExMode"
        }
    }

    public struct Eac3Settings: AWSEncodableShape & AWSDecodableShape {
        /// If set to ATTENUATE_3_DB, applies a 3 dB attenuation to the surround channels. Only used for 3/2 coding mode.
        public let attenuationControl: Eac3AttenuationControl?
        /// Specify the average bitrate in bits per second. The bitrate that you specify must be a multiple of 8000 within the allowed minimum and maximum values. Leave blank to use the default bitrate for the coding mode you select according ETSI TS 102 366. Valid bitrates for coding mode 1/0: Default: 96000. Minimum: 32000. Maximum: 3024000. Valid bitrates for coding mode 2/0: Default: 192000. Minimum: 96000. Maximum: 3024000. Valid bitrates for coding mode 3/2: Default: 384000. Minimum: 192000. Maximum: 3024000.
        public let bitrate: Int?
        /// Specify the bitstream mode for the E-AC-3 stream that the encoder emits. For more information about the EAC3 bitstream mode, see ATSC A/52-2012 (Annex E).
        public let bitstreamMode: Eac3BitstreamMode?
        /// Dolby Digital Plus coding mode. Determines number of channels.
        public let codingMode: Eac3CodingMode?
        /// Activates a DC highpass filter for all input channels.
        public let dcFilter: Eac3DcFilter?
        /// Sets the dialnorm for the output. If blank and input audio is Dolby Digital Plus, dialnorm will be passed through.
        public let dialnorm: Int?
        /// Choose the Dolby Digital dynamic range control (DRC) profile that MediaConvert uses when encoding the metadata in the Dolby Digital stream for the line operating mode. Related setting: When you use this setting, MediaConvert ignores any value you provide for Dynamic range compression profile. For information about the Dolby Digital DRC operating modes and profiles, see the Dynamic Range Control chapter of the Dolby Metadata Guide at https://developer.dolby.com/globalassets/professional/documents/dolby-metadata-guide.pdf.
        public let dynamicRangeCompressionLine: Eac3DynamicRangeCompressionLine?
        /// Choose the Dolby Digital dynamic range control (DRC) profile that MediaConvert uses when encoding the metadata in the Dolby Digital stream for the RF operating mode. Related setting: When you use this setting, MediaConvert ignores any value you provide for Dynamic range compression profile. For information about the Dolby Digital DRC operating modes and profiles, see the Dynamic Range Control chapter of the Dolby Metadata Guide at https://developer.dolby.com/globalassets/professional/documents/dolby-metadata-guide.pdf.
        public let dynamicRangeCompressionRf: Eac3DynamicRangeCompressionRf?
        /// When encoding 3/2 audio, controls whether the LFE channel is enabled
        public let lfeControl: Eac3LfeControl?
        /// Applies a 120Hz lowpass filter to the LFE channel prior to encoding. Only valid with 3_2_LFE coding mode.
        public let lfeFilter: Eac3LfeFilter?
        /// Specify a value for the following Dolby Digital Plus setting: Left only/Right only center mix. MediaConvert uses this value for downmixing. How the service uses this value depends on the value that you choose for Stereo downmix. Valid values: 3.0, 1.5, 0.0, -1.5, -3.0, -4.5, -6.0, and -60. The value -60 mutes the channel. This setting applies only if you keep the default value of 3/2 - L, R, C, Ls, Rs for the setting Coding mode. If you choose a different value for Coding mode, the service ignores Left only/Right only center.
        public let loRoCenterMixLevel: Double?
        /// Specify a value for the following Dolby Digital Plus setting: Left only/Right only. MediaConvert uses this value for downmixing. How the service uses this value depends on the value that you choose for Stereo downmix. Valid values: -1.5, -3.0, -4.5, -6.0, and -60. The value -60 mutes the channel. This setting applies only if you keep the default value of 3/2 - L, R, C, Ls, Rs for the setting Coding mode. If you choose a different value for Coding mode, the service ignores Left only/Right only surround.
        public let loRoSurroundMixLevel: Double?
        /// Specify a value for the following Dolby Digital Plus setting: Left total/Right total center mix. MediaConvert uses this value for downmixing. How the service uses this value depends on the value that you choose for Stereo downmix. Valid values: 3.0, 1.5, 0.0, -1.5, -3.0, -4.5, -6.0, and -60. The value -60 mutes the channel. This setting applies only if you keep the default value of 3/2 - L, R, C, Ls, Rs for the setting Coding mode. If you choose a different value for Coding mode, the service ignores Left total/Right total center.
        public let ltRtCenterMixLevel: Double?
        /// Specify a value for the following Dolby Digital Plus setting: Left total/Right total surround mix. MediaConvert uses this value for downmixing. How the service uses this value depends on the value that you choose for Stereo downmix. Valid values: -1.5, -3.0, -4.5, -6.0, and -60. The value -60 mutes the channel. This setting applies only if you keep the default value of 3/2 - L, R, C, Ls, Rs for the setting Coding mode. If you choose a different value for Coding mode, the service ignores Left total/Right total surround.
        public let ltRtSurroundMixLevel: Double?
        /// When set to FOLLOW_INPUT, encoder metadata will be sourced from the DD, DD+, or DolbyE decoder that supplied this audio data. If audio was not supplied from one of these streams, then the static metadata settings will be used.
        public let metadataControl: Eac3MetadataControl?
        /// When set to WHEN_POSSIBLE, input DD+ audio will be passed through if it is present on the input. this detection is dynamic over the life of the transcode. Inputs that alternate between DD+ and non-DD+ content will have a consistent DD+ output as the system alternates between passthrough and encoding.
        public let passthroughControl: Eac3PassthroughControl?
        /// Controls the amount of phase-shift applied to the surround channels. Only used for 3/2 coding mode.
        public let phaseControl: Eac3PhaseControl?
        /// This value is always 48000. It represents the sample rate in Hz.
        public let sampleRate: Int?
        /// Choose how the service does stereo downmixing. This setting only applies if you keep the default value of 3/2 - L, R, C, Ls, Rs for the setting Coding mode. If you choose a different value for Coding mode, the service ignores Stereo downmix.
        public let stereoDownmix: Eac3StereoDownmix?
        /// When encoding 3/2 audio, sets whether an extra center back surround channel is matrix encoded into the left and right surround channels.
        public let surroundExMode: Eac3SurroundExMode?
        /// When encoding 2/0 audio, sets whether Dolby Surround is matrix encoded into the two channels.
        public let surroundMode: Eac3SurroundMode?

        @inlinable
        public init(attenuationControl: Eac3AttenuationControl? = nil, bitrate: Int? = nil, bitstreamMode: Eac3BitstreamMode? = nil, codingMode: Eac3CodingMode? = nil, dcFilter: Eac3DcFilter? = nil, dialnorm: Int? = nil, dynamicRangeCompressionLine: Eac3DynamicRangeCompressionLine? = nil, dynamicRangeCompressionRf: Eac3DynamicRangeCompressionRf? = nil, lfeControl: Eac3LfeControl? = nil, lfeFilter: Eac3LfeFilter? = nil, loRoCenterMixLevel: Double? = nil, loRoSurroundMixLevel: Double? = nil, ltRtCenterMixLevel: Double? = nil, ltRtSurroundMixLevel: Double? = nil, metadataControl: Eac3MetadataControl? = nil, passthroughControl: Eac3PassthroughControl? = nil, phaseControl: Eac3PhaseControl? = nil, sampleRate: Int? = nil, stereoDownmix: Eac3StereoDownmix? = nil, surroundExMode: Eac3SurroundExMode? = nil, surroundMode: Eac3SurroundMode? = nil) {
            self.attenuationControl = attenuationControl
            self.bitrate = bitrate
            self.bitstreamMode = bitstreamMode
            self.codingMode = codingMode
            self.dcFilter = dcFilter
            self.dialnorm = dialnorm
            self.dynamicRangeCompressionLine = dynamicRangeCompressionLine
            self.dynamicRangeCompressionRf = dynamicRangeCompressionRf
            self.lfeControl = lfeControl
            self.lfeFilter = lfeFilter
            self.loRoCenterMixLevel = loRoCenterMixLevel
            self.loRoSurroundMixLevel = loRoSurroundMixLevel
            self.ltRtCenterMixLevel = ltRtCenterMixLevel
            self.ltRtSurroundMixLevel = ltRtSurroundMixLevel
            self.metadataControl = metadataControl
            self.passthroughControl = passthroughControl
            self.phaseControl = phaseControl
            self.sampleRate = sampleRate
            self.stereoDownmix = stereoDownmix
            self.surroundExMode = surroundExMode
            self.surroundMode = surroundMode
        }

        public func validate(name: String) throws {
            try self.validate(self.bitrate, name: "bitrate", parent: name, max: 3024000)
            try self.validate(self.bitrate, name: "bitrate", parent: name, min: 32000)
            try self.validate(self.dialnorm, name: "dialnorm", parent: name, max: 31)
            try self.validate(self.dialnorm, name: "dialnorm", parent: name, min: 1)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, max: 48000)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, min: 48000)
        }

        private enum CodingKeys: String, CodingKey {
            case attenuationControl = "attenuationControl"
            case bitrate = "bitrate"
            case bitstreamMode = "bitstreamMode"
            case codingMode = "codingMode"
            case dcFilter = "dcFilter"
            case dialnorm = "dialnorm"
            case dynamicRangeCompressionLine = "dynamicRangeCompressionLine"
            case dynamicRangeCompressionRf = "dynamicRangeCompressionRf"
            case lfeControl = "lfeControl"
            case lfeFilter = "lfeFilter"
            case loRoCenterMixLevel = "loRoCenterMixLevel"
            case loRoSurroundMixLevel = "loRoSurroundMixLevel"
            case ltRtCenterMixLevel = "ltRtCenterMixLevel"
            case ltRtSurroundMixLevel = "ltRtSurroundMixLevel"
            case metadataControl = "metadataControl"
            case passthroughControl = "passthroughControl"
            case phaseControl = "phaseControl"
            case sampleRate = "sampleRate"
            case stereoDownmix = "stereoDownmix"
            case surroundExMode = "surroundExMode"
            case surroundMode = "surroundMode"
        }
    }

    public struct EmbeddedDestinationSettings: AWSEncodableShape & AWSDecodableShape {
        /// Ignore this setting unless your input captions are SCC format and your output captions are embedded in the video stream. Specify a CC number for each captions channel in this output. If you have two channels, choose CC numbers that aren't in the same field. For example, choose 1 and 3. For more information, see https://docs.aws.amazon.com/console/mediaconvert/dual-scc-to-embedded.
        public let destination608ChannelNumber: Int?
        /// Ignore this setting unless your input captions are SCC format and you want both 608 and 708 captions embedded in your output stream. Optionally, specify the 708 service number for each output captions channel. Choose a different number for each channel. To use this setting, also set Force 608 to 708 upconvert to Upconvert in your input captions selector settings. If you choose to upconvert but don't specify a 708 service number, MediaConvert uses the number that you specify for CC channel number for the 708 service number. For more information, see https://docs.aws.amazon.com/console/mediaconvert/dual-scc-to-embedded.
        public let destination708ServiceNumber: Int?

        @inlinable
        public init(destination608ChannelNumber: Int? = nil, destination708ServiceNumber: Int? = nil) {
            self.destination608ChannelNumber = destination608ChannelNumber
            self.destination708ServiceNumber = destination708ServiceNumber
        }

        public func validate(name: String) throws {
            try self.validate(self.destination608ChannelNumber, name: "destination608ChannelNumber", parent: name, max: 4)
            try self.validate(self.destination608ChannelNumber, name: "destination608ChannelNumber", parent: name, min: 1)
            try self.validate(self.destination708ServiceNumber, name: "destination708ServiceNumber", parent: name, max: 6)
            try self.validate(self.destination708ServiceNumber, name: "destination708ServiceNumber", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case destination608ChannelNumber = "destination608ChannelNumber"
            case destination708ServiceNumber = "destination708ServiceNumber"
        }
    }

    public struct EmbeddedSourceSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify whether this set of input captions appears in your outputs in both 608 and 708 format. If you choose Upconvert, MediaConvert includes the captions data in two ways: it passes the 608 data through using the 608 compatibility bytes fields of the 708 wrapper, and it also translates the 608 data into 708.
        public let convert608To708: EmbeddedConvert608To708?
        /// Specifies the 608/708 channel number within the video track from which to extract captions. Unused for passthrough.
        public let source608ChannelNumber: Int?
        /// Specifies the video track index used for extracting captions. The system only supports one input video track, so this should always be set to '1'.
        public let source608TrackNumber: Int?
        /// By default, the service terminates any unterminated captions at the end of each input. If you want the caption to continue onto your next input, disable this setting.
        public let terminateCaptions: EmbeddedTerminateCaptions?

        @inlinable
        public init(convert608To708: EmbeddedConvert608To708? = nil, source608ChannelNumber: Int? = nil, source608TrackNumber: Int? = nil, terminateCaptions: EmbeddedTerminateCaptions? = nil) {
            self.convert608To708 = convert608To708
            self.source608ChannelNumber = source608ChannelNumber
            self.source608TrackNumber = source608TrackNumber
            self.terminateCaptions = terminateCaptions
        }

        public func validate(name: String) throws {
            try self.validate(self.source608ChannelNumber, name: "source608ChannelNumber", parent: name, max: 4)
            try self.validate(self.source608ChannelNumber, name: "source608ChannelNumber", parent: name, min: 1)
            try self.validate(self.source608TrackNumber, name: "source608TrackNumber", parent: name, max: 1)
            try self.validate(self.source608TrackNumber, name: "source608TrackNumber", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case convert608To708 = "convert608To708"
            case source608ChannelNumber = "source608ChannelNumber"
            case source608TrackNumber = "source608TrackNumber"
            case terminateCaptions = "terminateCaptions"
        }
    }

    public struct EncryptionContractConfiguration: AWSEncodableShape & AWSDecodableShape {
        /// Specify which SPEKE version 2.0 audio preset MediaConvert uses to request content keys from your SPEKE server. For more information, see: https://docs.aws.amazon.com/mediaconvert/latest/ug/drm-content-speke-v2-presets.html To encrypt to your audio outputs, choose from the following: Audio preset 1, Audio preset 2, or Audio preset 3. To encrypt your audio outputs, using the same content key for both your audio and video outputs: Choose Shared. When you do, you must also set SPEKE v2.0 video preset to Shared. To not encrypt your audio outputs: Choose Unencrypted. When you do, to encrypt your video outputs, you must also specify a SPEKE v2.0 video preset (other than Shared or Unencrypted).
        public let spekeAudioPreset: PresetSpeke20Audio?
        /// Specify which SPEKE version 2.0 video preset MediaConvert uses to request content keys from your SPEKE server. For more information, see: https://docs.aws.amazon.com/mediaconvert/latest/ug/drm-content-speke-v2-presets.html To encrypt to your video outputs, choose from the following: Video preset 1, Video preset 2, Video preset 3, Video preset 4, Video preset 5, Video preset 6, Video preset 7, or Video preset 8. To encrypt your video outputs, using the same content key for both your video and audio outputs: Choose Shared. When you do, you must also set SPEKE v2.0 audio preset to Shared. To not encrypt your video outputs: Choose Unencrypted. When you do, to encrypt your audio outputs, you must also specify a SPEKE v2.0 audio preset (other than Shared or Unencrypted).
        public let spekeVideoPreset: PresetSpeke20Video?

        @inlinable
        public init(spekeAudioPreset: PresetSpeke20Audio? = nil, spekeVideoPreset: PresetSpeke20Video? = nil) {
            self.spekeAudioPreset = spekeAudioPreset
            self.spekeVideoPreset = spekeVideoPreset
        }

        private enum CodingKeys: String, CodingKey {
            case spekeAudioPreset = "spekeAudioPreset"
            case spekeVideoPreset = "spekeVideoPreset"
        }
    }

    public struct Endpoint: AWSDecodableShape {
        /// URL of endpoint
        public let url: String?

        @inlinable
        public init(url: String? = nil) {
            self.url = url
        }

        private enum CodingKeys: String, CodingKey {
            case url = "url"
        }
    }

    public struct EsamManifestConfirmConditionNotification: AWSEncodableShape & AWSDecodableShape {
        /// Provide your ESAM ManifestConfirmConditionNotification XML document inside your JSON job settings. Form the XML document as per OC-SP-ESAM-API-I03-131025. The transcoder will use the Manifest Conditioning instructions in the message that you supply.
        public let mccXml: String?

        @inlinable
        public init(mccXml: String? = nil) {
            self.mccXml = mccXml
        }

        public func validate(name: String) throws {
            try self.validate(self.mccXml, name: "mccXml", parent: name, pattern: "^\\s*<(.|\\n)*ManifestConfirmConditionNotification(.|\\n)*>\\s*$")
        }

        private enum CodingKeys: String, CodingKey {
            case mccXml = "mccXml"
        }
    }

    public struct EsamSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specifies an ESAM ManifestConfirmConditionNotification XML as per OC-SP-ESAM-API-I03-131025. The transcoder uses the manifest conditioning instructions that you provide in the setting MCC XML.
        public let manifestConfirmConditionNotification: EsamManifestConfirmConditionNotification?
        /// Specifies the stream distance, in milliseconds, between the SCTE 35 messages that the transcoder places and the splice points that they refer to. If the time between the start of the asset and the SCTE-35 message is less than this value, then the transcoder places the SCTE-35 marker at the beginning of the stream.
        public let responseSignalPreroll: Int?
        /// Specifies an ESAM SignalProcessingNotification XML as per OC-SP-ESAM-API-I03-131025. The transcoder uses the signal processing instructions that you provide in the setting SCC XML.
        public let signalProcessingNotification: EsamSignalProcessingNotification?

        @inlinable
        public init(manifestConfirmConditionNotification: EsamManifestConfirmConditionNotification? = nil, responseSignalPreroll: Int? = nil, signalProcessingNotification: EsamSignalProcessingNotification? = nil) {
            self.manifestConfirmConditionNotification = manifestConfirmConditionNotification
            self.responseSignalPreroll = responseSignalPreroll
            self.signalProcessingNotification = signalProcessingNotification
        }

        public func validate(name: String) throws {
            try self.manifestConfirmConditionNotification?.validate(name: "\(name).manifestConfirmConditionNotification")
            try self.validate(self.responseSignalPreroll, name: "responseSignalPreroll", parent: name, max: 30000)
            try self.validate(self.responseSignalPreroll, name: "responseSignalPreroll", parent: name, min: 0)
            try self.signalProcessingNotification?.validate(name: "\(name).signalProcessingNotification")
        }

        private enum CodingKeys: String, CodingKey {
            case manifestConfirmConditionNotification = "manifestConfirmConditionNotification"
            case responseSignalPreroll = "responseSignalPreroll"
            case signalProcessingNotification = "signalProcessingNotification"
        }
    }

    public struct EsamSignalProcessingNotification: AWSEncodableShape & AWSDecodableShape {
        /// Provide your ESAM SignalProcessingNotification XML document inside your JSON job settings. Form the XML document as per OC-SP-ESAM-API-I03-131025. The transcoder will use the signal processing instructions in the message that you supply. For your MPEG2-TS file outputs, if you want the service to place SCTE-35 markers at the insertion points you specify in the XML document, you must also enable SCTE-35 ESAM. Note that you can either specify an ESAM XML document or enable SCTE-35 passthrough. You can't do both.
        public let sccXml: String?

        @inlinable
        public init(sccXml: String? = nil) {
            self.sccXml = sccXml
        }

        public func validate(name: String) throws {
            try self.validate(self.sccXml, name: "sccXml", parent: name, pattern: "^\\s*<(.|\\n)*SignalProcessingNotification(.|\\n)*>\\s*$")
        }

        private enum CodingKeys: String, CodingKey {
            case sccXml = "sccXml"
        }
    }

    public struct ExtendedDataServices: AWSEncodableShape & AWSDecodableShape {
        /// The action to take on copy and redistribution control XDS packets. If you select PASSTHROUGH, packets will not be changed. If you select STRIP, any packets will be removed in output captions.
        public let copyProtectionAction: CopyProtectionAction?
        /// The action to take on content advisory XDS packets. If you select PASSTHROUGH, packets will not be changed. If you select STRIP, any packets will be removed in output captions.
        public let vchipAction: VchipAction?

        @inlinable
        public init(copyProtectionAction: CopyProtectionAction? = nil, vchipAction: VchipAction? = nil) {
            self.copyProtectionAction = copyProtectionAction
            self.vchipAction = vchipAction
        }

        private enum CodingKeys: String, CodingKey {
            case copyProtectionAction = "copyProtectionAction"
            case vchipAction = "vchipAction"
        }
    }

    public struct F4vSettings: AWSEncodableShape & AWSDecodableShape {
        /// To place the MOOV atom at the beginning of your output, which is useful for progressive downloading: Leave blank or choose Progressive download. To place the MOOV at the end of your output: Choose Normal.
        public let moovPlacement: F4vMoovPlacement?

        @inlinable
        public init(moovPlacement: F4vMoovPlacement? = nil) {
            self.moovPlacement = moovPlacement
        }

        private enum CodingKeys: String, CodingKey {
            case moovPlacement = "moovPlacement"
        }
    }

    public struct FileGroupSettings: AWSEncodableShape & AWSDecodableShape {
        /// Use Destination to specify the S3 output location and the output filename base. Destination accepts format identifiers. If you do not specify the base filename in the URI, the service will use the filename of the input file. If your job has multiple inputs, the service uses the filename of the first input file.
        public let destination: String?
        /// Settings associated with the destination. Will vary based on the type of destination
        public let destinationSettings: DestinationSettings?

        @inlinable
        public init(destination: String? = nil, destinationSettings: DestinationSettings? = nil) {
            self.destination = destination
            self.destinationSettings = destinationSettings
        }

        public func validate(name: String) throws {
            try self.validate(self.destination, name: "destination", parent: name, pattern: "^s3:\\/\\/")
            try self.destinationSettings?.validate(name: "\(name).destinationSettings")
        }

        private enum CodingKeys: String, CodingKey {
            case destination = "destination"
            case destinationSettings = "destinationSettings"
        }
    }

    public struct FileSourceSettings: AWSEncodableShape & AWSDecodableShape {
        /// Choose whether to limit the byte rate at which your SCC input captions are inserted into your output. To not limit the caption rate: We recommend that you keep the default value, Disabled. MediaConvert inserts captions in your output according to the byte rates listed in the EIA-608 specification, typically 2 or 3 caption bytes per frame depending on your output frame rate. To limit your output caption rate: Choose Enabled. Choose this option if your downstream systems require a maximum of 2 caption bytes per frame. Note that this setting has no effect when your output frame rate is 30 or 60.
        public let byteRateLimit: CaptionSourceByteRateLimit?
        /// Specify whether this set of input captions appears in your outputs in both 608 and 708 format. If you choose Upconvert, MediaConvert includes the captions data in two ways: it passes the 608 data through using the 608 compatibility bytes fields of the 708 wrapper, and it also translates the 608 data into 708.
        public let convert608To708: FileSourceConvert608To708?
        /// Choose the presentation style of your input SCC captions. To use the same presentation style as your input: Keep the default value, Disabled. To convert paint-on captions to pop-on: Choose Enabled. We also recommend that you choose Enabled if you notice additional repeated lines in your output captions.
        public let convertPaintToPop: CaptionSourceConvertPaintOnToPopOn?
        /// Ignore this setting unless your input captions format is SCC. To have the service compensate for differing frame rates between your input captions and input video, specify the frame rate of the captions file. Specify this value as a fraction. For example, you might specify 24 / 1 for 24 fps, 25 / 1 for 25 fps, 24000 / 1001 for 23.976 fps, or 30000 / 1001 for 29.97 fps.
        public let framerate: CaptionSourceFramerate?
        /// External caption file used for loading captions. Accepted file extensions are 'scc', 'ttml', 'dfxp', 'stl', 'srt', 'xml', 'smi', 'webvtt', and 'vtt'.
        public let sourceFile: String?
        /// Optional. Use this setting when you need to adjust the sync between your sidecar captions and your video. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/time-delta-use-cases.html. Enter a positive or negative number to modify the times in the captions file. For example, type 15 to add 15 seconds to all the times in the captions file. Type -5 to subtract 5 seconds from the times in the captions file. You can optionally specify your time delta in milliseconds instead of seconds. When you do so, set the related setting, Time delta units to Milliseconds. Note that, when you specify a time delta for timecode-based caption sources, such as SCC and STL, and your time delta isn't a multiple of the input frame rate, MediaConvert snaps the captions to the nearest frame. For example, when your input video frame rate is 25 fps and you specify 1010ms for time delta, MediaConvert delays your captions by 1000 ms.
        public let timeDelta: Int?
        /// When you use the setting Time delta to adjust the sync between your sidecar captions and your video, use this setting to specify the units for the delta that you specify. When you don't specify a value for Time delta units, MediaConvert uses seconds by default.
        public let timeDeltaUnits: FileSourceTimeDeltaUnits?
        /// Specify whether this set of input captions appears in your outputs in both STL and Teletext format. If you choose Upconvert, MediaConvert includes the captions data in two ways: it passes the STL data through using the Teletext compatibility bytes fields of the Teletext wrapper, and it also translates the STL data into Teletext.
        public let upconvertSTLToTeletext: CaptionSourceUpconvertSTLToTeletext?

        @inlinable
        public init(byteRateLimit: CaptionSourceByteRateLimit? = nil, convert608To708: FileSourceConvert608To708? = nil, convertPaintToPop: CaptionSourceConvertPaintOnToPopOn? = nil, framerate: CaptionSourceFramerate? = nil, sourceFile: String? = nil, timeDelta: Int? = nil, timeDeltaUnits: FileSourceTimeDeltaUnits? = nil, upconvertSTLToTeletext: CaptionSourceUpconvertSTLToTeletext? = nil) {
            self.byteRateLimit = byteRateLimit
            self.convert608To708 = convert608To708
            self.convertPaintToPop = convertPaintToPop
            self.framerate = framerate
            self.sourceFile = sourceFile
            self.timeDelta = timeDelta
            self.timeDeltaUnits = timeDeltaUnits
            self.upconvertSTLToTeletext = upconvertSTLToTeletext
        }

        public func validate(name: String) throws {
            try self.framerate?.validate(name: "\(name).framerate")
            try self.validate(self.sourceFile, name: "sourceFile", parent: name, min: 14)
            try self.validate(self.sourceFile, name: "sourceFile", parent: name, pattern: "^((s3://(.*?)\\.(scc|SCC|ttml|TTML|dfxp|DFXP|stl|STL|srt|SRT|xml|XML|smi|SMI|vtt|VTT|webvtt|WEBVTT))|(https?://(.*?)\\.(scc|SCC|ttml|TTML|dfxp|DFXP|stl|STL|srt|SRT|xml|XML|smi|SMI|vtt|VTT|webvtt|WEBVTT)(\\?([^&=]+=[^&]+&)*[^&=]+=[^&]+)?))$")
            try self.validate(self.timeDelta, name: "timeDelta", parent: name, max: 2147483647)
            try self.validate(self.timeDelta, name: "timeDelta", parent: name, min: -2147483648)
        }

        private enum CodingKeys: String, CodingKey {
            case byteRateLimit = "byteRateLimit"
            case convert608To708 = "convert608To708"
            case convertPaintToPop = "convertPaintToPop"
            case framerate = "framerate"
            case sourceFile = "sourceFile"
            case timeDelta = "timeDelta"
            case timeDeltaUnits = "timeDeltaUnits"
            case upconvertSTLToTeletext = "upconvertSTLToTeletext"
        }
    }

    public struct FlacSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify Bit depth (BitDepth), in bits per sample, to choose the encoding quality for this audio track.
        public let bitDepth: Int?
        /// Specify the number of channels in this output audio track. Choosing Mono on the console gives you 1 output channel; choosing Stereo gives you 2. In the API, valid values are between 1 and 8.
        public let channels: Int?
        /// Sample rate in Hz.
        public let sampleRate: Int?

        @inlinable
        public init(bitDepth: Int? = nil, channels: Int? = nil, sampleRate: Int? = nil) {
            self.bitDepth = bitDepth
            self.channels = channels
            self.sampleRate = sampleRate
        }

        public func validate(name: String) throws {
            try self.validate(self.bitDepth, name: "bitDepth", parent: name, max: 24)
            try self.validate(self.bitDepth, name: "bitDepth", parent: name, min: 16)
            try self.validate(self.channels, name: "channels", parent: name, max: 8)
            try self.validate(self.channels, name: "channels", parent: name, min: 1)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, max: 192000)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, min: 22050)
        }

        private enum CodingKeys: String, CodingKey {
            case bitDepth = "bitDepth"
            case channels = "channels"
            case sampleRate = "sampleRate"
        }
    }

    public struct ForceIncludeRenditionSize: AWSEncodableShape & AWSDecodableShape {
        /// Use Height to define the video resolution height, in pixels, for this rule.
        public let height: Int?
        /// Use Width to define the video resolution width, in pixels, for this rule.
        public let width: Int?

        @inlinable
        public init(height: Int? = nil, width: Int? = nil) {
            self.height = height
            self.width = width
        }

        public func validate(name: String) throws {
            try self.validate(self.height, name: "height", parent: name, max: 8192)
            try self.validate(self.height, name: "height", parent: name, min: 32)
            try self.validate(self.width, name: "width", parent: name, max: 8192)
            try self.validate(self.width, name: "width", parent: name, min: 32)
        }

        private enum CodingKeys: String, CodingKey {
            case height = "height"
            case width = "width"
        }
    }

    public struct FrameCaptureSettings: AWSEncodableShape & AWSDecodableShape {
        /// Frame capture will encode the first frame of the output stream, then one frame every framerateDenominator/framerateNumerator seconds. For example, settings of framerateNumerator = 1 and framerateDenominator = 3 (a rate of 1/3 frame per second) will capture the first frame, then 1 frame every 3s. Files will be named as filename.n.jpg where n is the 0-based sequence number of each Capture.
        public let framerateDenominator: Int?
        /// Frame capture will encode the first frame of the output stream, then one frame every framerateDenominator/framerateNumerator seconds. For example, settings of framerateNumerator = 1 and framerateDenominator = 3 (a rate of 1/3 frame per second) will capture the first frame, then 1 frame every 3s. Files will be named as filename.NNNNNNN.jpg where N is the 0-based frame sequence number zero padded to 7 decimal places.
        public let framerateNumerator: Int?
        /// Maximum number of captures (encoded jpg output files).
        public let maxCaptures: Int?
        /// JPEG Quality - a higher value equals higher quality.
        public let quality: Int?

        @inlinable
        public init(framerateDenominator: Int? = nil, framerateNumerator: Int? = nil, maxCaptures: Int? = nil, quality: Int? = nil) {
            self.framerateDenominator = framerateDenominator
            self.framerateNumerator = framerateNumerator
            self.maxCaptures = maxCaptures
            self.quality = quality
        }

        public func validate(name: String) throws {
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, max: 2147483647)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, min: 1)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, max: 2147483647)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, min: 1)
            try self.validate(self.maxCaptures, name: "maxCaptures", parent: name, max: 10000000)
            try self.validate(self.maxCaptures, name: "maxCaptures", parent: name, min: 1)
            try self.validate(self.quality, name: "quality", parent: name, max: 100)
            try self.validate(self.quality, name: "quality", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case framerateDenominator = "framerateDenominator"
            case framerateNumerator = "framerateNumerator"
            case maxCaptures = "maxCaptures"
            case quality = "quality"
        }
    }

    public struct FrameRate: AWSDecodableShape {
        /// The denominator, or bottom number, in the fractional frame rate. For example, if your frame rate is 24000 / 1001 (23.976 frames per second), then the denominator would be 1001.
        public let denominator: Int?
        /// The numerator, or top number, in the fractional frame rate. For example, if your frame rate is 24000 / 1001 (23.976 frames per second), then the numerator would be 24000.
        public let numerator: Int?

        @inlinable
        public init(denominator: Int? = nil, numerator: Int? = nil) {
            self.denominator = denominator
            self.numerator = numerator
        }

        private enum CodingKeys: String, CodingKey {
            case denominator = "denominator"
            case numerator = "numerator"
        }
    }

    public struct GetJobRequest: AWSEncodableShape {
        /// the job ID of the job.
        public let id: String

        @inlinable
        public init(id: String) {
            self.id = id
        }

        public func encode(to encoder: Encoder) throws {
            let request = encoder.userInfo[.awsRequest]! as! RequestEncodingContainer
            _ = encoder.container(keyedBy: CodingKeys.self)
            request.encodePath(self.id, key: "Id")
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetJobResponse: AWSDecodableShape {
        /// Each job converts an input file into an output file or files. For more information, see the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
        public let job: Job?

        @inlinable
        public init(job: Job? = nil) {
            self.job = job
        }

        private enum CodingKeys: String, CodingKey {
            case job = "job"
        }
    }

    public struct GetJobTemplateRequest: AWSEncodableShape {
        /// The name of the job template.
        public let name: String

        @inlinable
        public init(name: String) {
            self.name = name
        }

        public func encode(to encoder: Encoder) throws {
            let request = encoder.userInfo[.awsRequest]! as! RequestEncodingContainer
            _ = encoder.container(keyedBy: CodingKeys.self)
            request.encodePath(self.name, key: "Name")
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetJobTemplateResponse: AWSDecodableShape {
        /// A job template is a pre-made set of encoding instructions that you can use to quickly create a job.
        public let jobTemplate: JobTemplate?

        @inlinable
        public init(jobTemplate: JobTemplate? = nil) {
            self.jobTemplate = jobTemplate
        }

        private enum CodingKeys: String, CodingKey {
            case jobTemplate = "jobTemplate"
        }
    }

    public struct GetPolicyRequest: AWSEncodableShape {
        public init() {}
    }

    public struct GetPolicyResponse: AWSDecodableShape {
        /// A policy configures behavior that you allow or disallow for your account. For information about MediaConvert policies, see the user guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
        public let policy: Policy?

        @inlinable
        public init(policy: Policy? = nil) {
            self.policy = policy
        }

        private enum CodingKeys: String, CodingKey {
            case policy = "policy"
        }
    }

    public struct GetPresetRequest: AWSEncodableShape {
        /// The name of the preset.
        public let name: String

        @inlinable
        public init(name: String) {
            self.name = name
        }

        public func encode(to encoder: Encoder) throws {
            let request = encoder.userInfo[.awsRequest]! as! RequestEncodingContainer
            _ = encoder.container(keyedBy: CodingKeys.self)
            request.encodePath(self.name, key: "Name")
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetPresetResponse: AWSDecodableShape {
        /// A preset is a collection of preconfigured media conversion settings that you want MediaConvert to apply to the output during the conversion process.
        public let preset: Preset?

        @inlinable
        public init(preset: Preset? = nil) {
            self.preset = preset
        }

        private enum CodingKeys: String, CodingKey {
            case preset = "preset"
        }
    }

    public struct GetQueueRequest: AWSEncodableShape {
        /// The name of the queue that you want information about.
        public let name: String

        @inlinable
        public init(name: String) {
            self.name = name
        }

        public func encode(to encoder: Encoder) throws {
            let request = encoder.userInfo[.awsRequest]! as! RequestEncodingContainer
            _ = encoder.container(keyedBy: CodingKeys.self)
            request.encodePath(self.name, key: "Name")
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct GetQueueResponse: AWSDecodableShape {
        /// You can use queues to manage the resources that are available to your AWS account for running multiple transcoding jobs at the same time. If you don't specify a queue, the service sends all jobs through the default queue. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-queues.html.
        public let queue: Queue?

        @inlinable
        public init(queue: Queue? = nil) {
            self.queue = queue
        }

        private enum CodingKeys: String, CodingKey {
            case queue = "queue"
        }
    }

    public struct GifSettings: AWSEncodableShape & AWSDecodableShape {
        /// If you are using the console, use the Framerate setting to specify the frame rate for this output. If you want to keep the same frame rate as the input video, choose Follow source. If you want to do frame rate conversion, choose a frame rate from the dropdown list or choose Custom. The framerates shown in the dropdown list are decimal approximations of fractions. If you choose Custom, specify your frame rate as a fraction. If you are creating your transcoding job specification as a JSON file without the console, use FramerateControl to specify which value the service uses for the frame rate for this output. Choose INITIALIZE_FROM_SOURCE if you want the service to use the frame rate from the input. Choose SPECIFIED if you want the service to use the frame rate you specify in the settings FramerateNumerator and FramerateDenominator.
        public let framerateControl: GifFramerateControl?
        /// Optional. Specify how the transcoder performs framerate conversion. The default behavior is to use Drop duplicate (DUPLICATE_DROP) conversion. When you choose Interpolate (INTERPOLATE) instead, the conversion produces smoother motion.
        public let framerateConversionAlgorithm: GifFramerateConversionAlgorithm?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example,  24000 / 1001 = 23.976 fps. Use FramerateDenominator to specify the denominator of this fraction. In this example, use 1001 for the value of FramerateDenominator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateDenominator: Int?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example,  24000 / 1001 = 23.976 fps. Use FramerateNumerator to specify the numerator of this fraction. In this example, use 24000 for the value of FramerateNumerator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateNumerator: Int?

        @inlinable
        public init(framerateControl: GifFramerateControl? = nil, framerateConversionAlgorithm: GifFramerateConversionAlgorithm? = nil, framerateDenominator: Int? = nil, framerateNumerator: Int? = nil) {
            self.framerateControl = framerateControl
            self.framerateConversionAlgorithm = framerateConversionAlgorithm
            self.framerateDenominator = framerateDenominator
            self.framerateNumerator = framerateNumerator
        }

        public func validate(name: String) throws {
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, max: 2147483647)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, min: 1)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, max: 2147483647)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case framerateControl = "framerateControl"
            case framerateConversionAlgorithm = "framerateConversionAlgorithm"
            case framerateDenominator = "framerateDenominator"
            case framerateNumerator = "framerateNumerator"
        }
    }

    public struct H264QvbrSettings: AWSEncodableShape & AWSDecodableShape {
        /// Use this setting only when Rate control mode is QVBR and Quality tuning level is Multi-pass HQ. For Max average bitrate values suited to the complexity of your input video, the service limits the average bitrate of the video part of this output to the value that you choose. That is, the total size of the video element is less than or equal to the value you set multiplied by the number of seconds of encoded output.
        public let maxAverageBitrate: Int?
        /// Use this setting only when you set Rate control mode to QVBR. Specify the target quality level for this output. MediaConvert determines the right number of bits to use for each part of the video to maintain the video quality that you specify. When you keep the default value, AUTO, MediaConvert picks a quality level for you, based on characteristics of your input video. If you prefer to specify a quality level, specify a number from 1 through 10. Use higher numbers for greater quality. Level 10 results in nearly lossless compression. The quality level for most broadcast-quality transcodes is between 6 and 9. Optionally, to specify a value between whole numbers, also provide a value for the setting qvbrQualityLevelFineTune. For example, if you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33.
        public let qvbrQualityLevel: Int?
        /// Optional. Specify a value here to set the QVBR quality to a level that is between whole numbers. For example, if you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33. MediaConvert rounds your QVBR quality level to the nearest third of a whole number. For example, if you set qvbrQualityLevel to 7 and you set qvbrQualityLevelFineTune to .25, your actual QVBR quality level is 7.33.
        public let qvbrQualityLevelFineTune: Double?

        @inlinable
        public init(maxAverageBitrate: Int? = nil, qvbrQualityLevel: Int? = nil, qvbrQualityLevelFineTune: Double? = nil) {
            self.maxAverageBitrate = maxAverageBitrate
            self.qvbrQualityLevel = qvbrQualityLevel
            self.qvbrQualityLevelFineTune = qvbrQualityLevelFineTune
        }

        public func validate(name: String) throws {
            try self.validate(self.maxAverageBitrate, name: "maxAverageBitrate", parent: name, max: 1152000000)
            try self.validate(self.maxAverageBitrate, name: "maxAverageBitrate", parent: name, min: 1000)
            try self.validate(self.qvbrQualityLevel, name: "qvbrQualityLevel", parent: name, max: 10)
            try self.validate(self.qvbrQualityLevel, name: "qvbrQualityLevel", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case maxAverageBitrate = "maxAverageBitrate"
            case qvbrQualityLevel = "qvbrQualityLevel"
            case qvbrQualityLevelFineTune = "qvbrQualityLevelFineTune"
        }
    }

    public struct H264Settings: AWSEncodableShape & AWSDecodableShape {
        /// Keep the default value, Auto, for this setting to have MediaConvert automatically apply the best types of quantization for your video content. When you want to apply your quantization settings manually, you must set H264AdaptiveQuantization to a value other than Auto. Use this setting to specify the strength of any adaptive quantization filters that you enable. If you don't want MediaConvert to do any adaptive quantization in this transcode, set Adaptive quantization to Off. Related settings: The value that you choose here applies to the following settings: H264FlickerAdaptiveQuantization, H264SpatialAdaptiveQuantization, and H264TemporalAdaptiveQuantization.
        public let adaptiveQuantization: H264AdaptiveQuantization?
        /// The Bandwidth reduction filter increases the video quality of your output relative to its bitrate. Use to lower the bitrate of your constant quality QVBR output, with little or no perceptual decrease in quality. Or, use to increase the video quality of outputs with other rate control modes relative to the bitrate that you specify. Bandwidth reduction increases further when your input is low quality or noisy. Outputs that use this feature incur pro-tier pricing. When you include Bandwidth reduction filter, you cannot include the Noise reducer preprocessor.
        public let bandwidthReductionFilter: BandwidthReductionFilter?
        /// Specify the average bitrate in bits per second. Required for VBR and CBR. For MS Smooth outputs, bitrates must be unique when rounded down to the nearest multiple of 1000.
        public let bitrate: Int?
        /// Specify an H.264 level that is consistent with your output video settings. If you aren't sure what level to specify, choose Auto.
        public let codecLevel: H264CodecLevel?
        /// H.264 Profile. High 4:2:2 and 10-bit profiles are only available with the AVC-I License.
        public let codecProfile: H264CodecProfile?
        /// Specify whether to allow the number of B-frames in your output GOP structure to vary or not depending on your input video content. To improve the subjective video quality of your output that has high-motion content: Leave blank or keep the default value Adaptive. MediaConvert will use fewer B-frames for high-motion video content than low-motion content. The maximum number of B- frames is limited by the value that you choose for B-frames between reference frames. To use the same number B-frames for all types of content: Choose Static.
        public let dynamicSubGop: H264DynamicSubGop?
        /// Optionally include or suppress markers at the end of your output that signal the end of the video stream. To include end of stream markers: Leave blank or keep the default value, Include. To not include end of stream markers: Choose Suppress. This is useful when your output will be inserted into another stream.
        public let endOfStreamMarkers: H264EndOfStreamMarkers?
        /// Entropy encoding mode. Use CABAC (must be in Main or High profile) or CAVLC.
        public let entropyEncoding: H264EntropyEncoding?
        /// The video encoding method for your MPEG-4 AVC output. Keep the default value, PAFF, to have MediaConvert use PAFF encoding for interlaced outputs. Choose Force field to disable PAFF encoding and create separate interlaced fields. Choose MBAFF to disable PAFF and have MediaConvert use MBAFF encoding for interlaced outputs.
        public let fieldEncoding: H264FieldEncoding?
        /// Only use this setting when you change the default value, AUTO, for the setting H264AdaptiveQuantization. When you keep all defaults, excluding H264AdaptiveQuantization and all other adaptive quantization from your JSON job specification, MediaConvert automatically applies the best types of quantization for your video content. When you set H264AdaptiveQuantization to a value other than AUTO, the default value for H264FlickerAdaptiveQuantization is Disabled. Change this value to Enabled to reduce I-frame pop. I-frame pop appears as a visual flicker that can arise when the encoder saves bits by copying some macroblocks many times from frame to frame, and then refreshes them at the I-frame. When you enable this setting, the encoder updates these macroblocks slightly more often to smooth out the flicker. To manually enable or disable H264FlickerAdaptiveQuantization, you must set Adaptive quantization to a value other than AUTO.
        public let flickerAdaptiveQuantization: H264FlickerAdaptiveQuantization?
        /// If you are using the console, use the Framerate setting to specify the frame rate for this output. If you want to keep the same frame rate as the input video, choose Follow source. If you want to do frame rate conversion, choose a frame rate from the dropdown list or choose Custom. The framerates shown in the dropdown list are decimal approximations of fractions. If you choose Custom, specify your frame rate as a fraction.
        public let framerateControl: H264FramerateControl?
        /// Choose the method that you want MediaConvert to use when increasing or decreasing your video's frame rate. For numerically simple conversions, such as 60 fps to 30 fps: We recommend that you keep the default value, Drop duplicate. For numerically complex conversions, to avoid stutter: Choose Interpolate. This results in a smooth picture, but might introduce undesirable video artifacts. For complex frame rate conversions, especially if your source video has already been converted from its original cadence: Choose FrameFormer to do motion-compensated interpolation. FrameFormer uses the best conversion method frame by frame. Note that using FrameFormer increases the transcoding time and incurs a significant add-on cost. When you choose FrameFormer, your input video resolution must be at least 128x96. To create an output with the same number of frames as your input: Choose Maintain frame count. When you do, MediaConvert will not drop, interpolate, add, or otherwise change the frame count from your input to your output. Note that since the frame count is maintained, the duration of your output will become shorter at higher frame rates and longer at lower frame rates.
        public let framerateConversionAlgorithm: H264FramerateConversionAlgorithm?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateDenominator to specify the denominator of this fraction. In this example, use 1001 for the value of FramerateDenominator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateDenominator: Int?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateNumerator to specify the numerator of this fraction. In this example, use 24000 for the value of FramerateNumerator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateNumerator: Int?
        /// Specify whether to allow B-frames to be referenced by other frame types. To use reference B-frames when your GOP structure has 1 or more B-frames: Leave blank or keep the default value Enabled. We recommend that you choose Enabled to help improve the video quality of your output relative to its bitrate. To not use reference B-frames: Choose Disabled.
        public let gopBReference: H264GopBReference?
        /// Specify the relative frequency of open to closed GOPs in this output. For example, if you want to allow four open GOPs and then require a closed GOP, set this value to 5. We recommend that you have the transcoder automatically choose this value for you based on characteristics of your input video. In the console, do this by keeping the default empty value. If you do explicitly specify a value, for segmented outputs, don't set this value to 0.
        public let gopClosedCadence: Int?
        /// Use this setting only when you set GOP mode control to Specified, frames or Specified, seconds. Specify the GOP length using a whole number of frames or a decimal value of seconds. MediaConvert will interpret this value as frames or seconds depending on the value you choose for GOP mode control. If you want to allow MediaConvert to automatically determine GOP size, leave GOP size blank and set GOP mode control to Auto. If your output group specifies HLS, DASH, or CMAF, leave GOP size blank and set GOP mode control to Auto in each output in your output group.
        public let gopSize: Double?
        /// Specify how the transcoder determines GOP size for this output. We recommend that you have the transcoder automatically choose this value for you based on characteristics of your input video. To enable this automatic behavior, choose Auto and and leave GOP size blank. By default, if you don't specify GOP mode control, MediaConvert will use automatic behavior. If your output group specifies HLS, DASH, or CMAF, set GOP mode control to Auto and leave GOP size blank in each output in your output group. To explicitly specify the GOP length, choose Specified, frames or Specified, seconds and then provide the GOP length in the related setting GOP size.
        public let gopSizeUnits: H264GopSizeUnits?
        /// If your downstream systems have strict buffer requirements: Specify the minimum percentage of the HRD buffer that's available at the end of each encoded video segment. For the best video quality: Set to 0 or leave blank to automatically determine the final buffer fill percentage.
        public let hrdBufferFinalFillPercentage: Int?
        /// Percentage of the buffer that should initially be filled (HRD buffer model).
        public let hrdBufferInitialFillPercentage: Int?
        /// Size of buffer (HRD buffer model) in bits. For example, enter five megabits as 5000000.
        public let hrdBufferSize: Int?
        /// Choose the scan line type for the output. Keep the default value, Progressive to create a progressive output, regardless of the scan type of your input. Use Top field first or Bottom field first to create an output that's interlaced with the same field polarity throughout. Use Follow, default top or Follow, default bottom to produce outputs with the same field polarity as the source. For jobs that have multiple inputs, the output field polarity might change over the course of the output. Follow behavior depends on the input scan type. If the source is interlaced, the output will be interlaced with the same polarity as the source. If the source is progressive, the output will be interlaced with top field bottom field first, depending on which of the Follow options you choose.
        public let interlaceMode: H264InterlaceMode?
        /// Maximum bitrate in bits/second. For example, enter five megabits per second as 5000000. Required when Rate control mode is QVBR.
        public let maxBitrate: Int?
        /// Specify the minimum number of frames allowed between two IDR-frames in your output. This includes frames created at the start of a GOP or a scene change. Use Min I-Interval to improve video compression by varying GOP size when two IDR-frames would be created near each other. For example, if a regular cadence-driven IDR-frame would fall within 5 frames of a scene-change IDR-frame, and you set Min I-interval to 5, then the encoder would only write an IDR-frame for the scene-change. In this way, one GOP is shortened or extended. If a cadence-driven IDR-frame would be further than 5 frames from a scene-change IDR-frame, then the encoder leaves all IDR-frames in place. To use an automatically determined interval: We recommend that you keep this value blank. This allows for MediaConvert to use an optimal setting according to the characteristics of your input video, and results in better video compression. To manually specify an interval: Enter a value from 1 to 30. Use when your downstream systems have specific GOP size requirements. To disable GOP size variance: Enter 0. MediaConvert will only create IDR-frames at the start of your output's cadence-driven GOP. Use when your downstream systems require a regular GOP size.
        public let minIInterval: Int?
        /// Specify the number of B-frames between reference frames in this output. For the best video quality: Leave blank. MediaConvert automatically determines the number of B-frames to use based on the characteristics of your input video. To manually specify the number of B-frames between reference frames: Enter an integer from 0 to 7.
        public let numberBFramesBetweenReferenceFrames: Int?
        /// Number of reference frames to use. The encoder may use more than requested if using B-frames and/or interlaced encoding.
        public let numberReferenceFrames: Int?
        /// Optional. Specify how the service determines the pixel aspect ratio (PAR) for this output. The default behavior, Follow source, uses the PAR from your input video for your output. To specify a different PAR in the console, choose any value other than Follow source. When you choose SPECIFIED for this setting, you must also specify values for the parNumerator and parDenominator settings.
        public let parControl: H264ParControl?
        /// Required when you set Pixel aspect ratio to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parDenominator is 33.
        public let parDenominator: Int?
        /// Required when you set Pixel aspect ratio to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parNumerator is 40.
        public let parNumerator: Int?
        /// Optionally choose one or more per frame metric reports to generate along with your output. You can use these metrics to analyze your video output according to one or more commonly used image quality metrics. You can specify per frame metrics for output groups or for individual outputs. When you do, MediaConvert writes a CSV (Comma-Separated Values) file to your S3 output destination, named after the output name and metric type. For example: videofile_PSNR.csv Jobs that generate per frame metrics will take longer to complete, depending on the resolution and complexity of your output. For example, some 4K jobs might take up to twice as long to complete. Note that when analyzing the video quality of your output, or when comparing the video quality of multiple different outputs, we generally also recommend a detailed visual review in a controlled environment. You can choose from the following per frame metrics: * PSNR: Peak Signal-to-Noise Ratio * SSIM: Structural Similarity Index Measure * MS_SSIM: Multi-Scale Similarity Index Measure * PSNR_HVS: Peak Signal-to-Noise Ratio, Human Visual System * VMAF: Video Multi-Method Assessment Fusion * QVBR: Quality-Defined Variable Bitrate. This option is only available when your output uses the QVBR rate control mode.
        public let perFrameMetrics: [FrameMetricType]?
        /// The Quality tuning level you choose represents a trade-off between the encoding speed of your job and the output video quality. For the fastest encoding speed at the cost of video quality: Choose Single pass. For a good balance between encoding speed and video quality: Leave blank or keep the default value Single pass HQ. For the best video quality, at the cost of encoding speed: Choose Multi pass HQ. MediaConvert performs an analysis pass on your input followed by an encoding pass. Outputs that use this feature incur pro-tier pricing.
        public let qualityTuningLevel: H264QualityTuningLevel?
        /// Settings for quality-defined variable bitrate encoding with the H.265 codec. Use these settings only when you set QVBR for Rate control mode.
        public let qvbrSettings: H264QvbrSettings?
        /// Use this setting to specify whether this output has a variable bitrate (VBR), constant bitrate (CBR) or quality-defined variable bitrate (QVBR).
        public let rateControlMode: H264RateControlMode?
        /// Places a PPS header on each encoded picture, even if repeated.
        public let repeatPps: H264RepeatPps?
        /// Specify whether to apply Saliency aware encoding to your output. Use to improve the perceptual video quality of your output by allocating more encoding bits to the prominent or noticeable parts of your content. To apply saliency aware encoding, when possible: We recommend that you choose Preferred. The effects of Saliency aware encoding are best seen in lower bitrate outputs. When you choose Preferred, note that Saliency aware encoding will only apply to outputs that are 720p or higher in resolution. To not apply saliency aware encoding, prioritizing encoding speed over perceptual video quality: Choose Disabled.
        public let saliencyAwareEncoding: H264SaliencyAwareEncoding?
        /// Use this setting for interlaced outputs, when your output frame rate is half of your input frame rate. In this situation, choose Optimized interlacing to create a better quality interlaced output. In this case, each progressive frame from the input corresponds to an interlaced field in the output. Keep the default value, Basic interlacing, for all other output frame rates. With basic interlacing, MediaConvert performs any frame rate conversion first and then interlaces the frames. When you choose Optimized interlacing and you set your output frame rate to a value that isn't suitable for optimized interlacing, MediaConvert automatically falls back to basic interlacing. Required settings: To use optimized interlacing, you must set Telecine to None or Soft. You can't use optimized interlacing for hard telecine outputs. You must also set Interlace mode to a value other than Progressive.
        public let scanTypeConversionMode: H264ScanTypeConversionMode?
        /// Enable this setting to insert I-frames at scene changes that the service automatically detects. This improves video quality and is enabled by default. If this output uses QVBR, choose Transition detection for further video quality improvement. For more information about QVBR, see https://docs.aws.amazon.com/console/mediaconvert/cbr-vbr-qvbr.
        public let sceneChangeDetect: H264SceneChangeDetect?
        /// Number of slices per picture. Must be less than or equal to the number of macroblock rows for progressive pictures, and less than or equal to half the number of macroblock rows for interlaced pictures.
        public let slices: Int?
        /// Ignore this setting unless your input frame rate is 23.976 or 24 frames per second (fps). Enable slow PAL to create a 25 fps output. When you enable slow PAL, MediaConvert relabels the video frames to 25 fps and resamples your audio to keep it synchronized with the video. Note that enabling this setting will slightly reduce the duration of your video. Required settings: You must also set Framerate to 25.
        public let slowPal: H264SlowPal?
        /// Ignore this setting unless you need to comply with a specification that requires a specific value. If you don't have a specification requirement, we recommend that you adjust the softness of your output by using a lower value for the setting Sharpness or by enabling a noise reducer filter. The Softness setting specifies the quantization matrices that the encoder uses. Keep the default value, 0, for flat quantization. Choose the value 1 or 16 to use the default JVT softening quantization matricies from the H.264 specification. Choose a value from 17 to 128 to use planar interpolation. Increasing values from 17 to 128 result in increasing reduction of high-frequency data. The value 128 results in the softest video.
        public let softness: Int?
        /// Only use this setting when you change the default value, Auto, for the setting H264AdaptiveQuantization. When you keep all defaults, excluding H264AdaptiveQuantization and all other adaptive quantization from your JSON job specification, MediaConvert automatically applies the best types of quantization for your video content. When you set H264AdaptiveQuantization to a value other than AUTO, the default value for H264SpatialAdaptiveQuantization is Enabled. Keep this default value to adjust quantization within each frame based on spatial variation of content complexity. When you enable this feature, the encoder uses fewer bits on areas that can sustain more distortion with no noticeable visual degradation and uses more bits on areas where any small distortion will be noticeable. For example, complex textured blocks are encoded with fewer bits and smooth textured blocks are encoded with more bits. Enabling this feature will almost always improve your video quality. Note, though, that this feature doesn't take into account where the viewer's attention is likely to be. If viewers are likely to be focusing their attention on a part of the screen with a lot of complex texture, you might choose to set H264SpatialAdaptiveQuantization to Disabled. Related setting: When you enable spatial adaptive quantization, set the value for Adaptive quantization depending on your content. For homogeneous content, such as cartoons and video games, set it to Low. For content with a wider variety of textures, set it to High or Higher. To manually enable or disable H264SpatialAdaptiveQuantization, you must set Adaptive quantization to a value other than AUTO.
        public let spatialAdaptiveQuantization: H264SpatialAdaptiveQuantization?
        /// Produces a bitstream compliant with SMPTE RP-2027.
        public let syntax: H264Syntax?
        /// When you do frame rate conversion from 23.976 frames per second (fps) to 29.97 fps, and your output scan type is interlaced, you can optionally enable hard or soft telecine to create a smoother picture. Hard telecine produces a 29.97i output. Soft telecine produces an output with a 23.976 output that signals to the video player device to do the conversion during play back. When you keep the default value, None, MediaConvert does a standard frame rate conversion to 29.97 without doing anything with the field polarity to create a smoother picture.
        public let telecine: H264Telecine?
        /// Only use this setting when you change the default value, AUTO, for the setting H264AdaptiveQuantization. When you keep all defaults, excluding H264AdaptiveQuantization and all other adaptive quantization from your JSON job specification, MediaConvert automatically applies the best types of quantization for your video content. When you set H264AdaptiveQuantization to a value other than AUTO, the default value for H264TemporalAdaptiveQuantization is Enabled. Keep this default value to adjust quantization within each frame based on temporal variation of content complexity. When you enable this feature, the encoder uses fewer bits on areas of the frame that aren't moving and uses more bits on complex objects with sharp edges that move a lot. For example, this feature improves the readability of text tickers on newscasts and scoreboards on sports matches. Enabling this feature will almost always improve your video quality. Note, though, that this feature doesn't take into account where the viewer's attention is likely to be. If viewers are likely to be focusing their attention on a part of the screen that doesn't have moving objects with sharp edges, such as sports athletes' faces, you might choose to set H264TemporalAdaptiveQuantization to Disabled. Related setting: When you enable temporal quantization, adjust the strength of the filter with the setting Adaptive quantization. To manually enable or disable H264TemporalAdaptiveQuantization, you must set Adaptive quantization to a value other than AUTO.
        public let temporalAdaptiveQuantization: H264TemporalAdaptiveQuantization?
        /// Inserts timecode for each frame as 4 bytes of an unregistered SEI message.
        public let unregisteredSeiTimecode: H264UnregisteredSeiTimecode?
        /// Specify how SPS and PPS NAL units are written in your output MP4 container, according to ISO/IEC 14496-15. If the location of these parameters doesn't matter in your workflow: Keep the default value, AVC1. MediaConvert writes SPS and PPS NAL units in the sample description ('stsd') box (but not into samples directly). To write SPS and PPS NAL units directly into samples (but not in the 'stsd' box): Choose AVC3. When you do, note that your output might not play properly with some downstream systems or players.
        public let writeMp4PackagingType: H264WriteMp4PackagingType?

        @inlinable
        public init(adaptiveQuantization: H264AdaptiveQuantization? = nil, bandwidthReductionFilter: BandwidthReductionFilter? = nil, bitrate: Int? = nil, codecLevel: H264CodecLevel? = nil, codecProfile: H264CodecProfile? = nil, dynamicSubGop: H264DynamicSubGop? = nil, endOfStreamMarkers: H264EndOfStreamMarkers? = nil, entropyEncoding: H264EntropyEncoding? = nil, fieldEncoding: H264FieldEncoding? = nil, flickerAdaptiveQuantization: H264FlickerAdaptiveQuantization? = nil, framerateControl: H264FramerateControl? = nil, framerateConversionAlgorithm: H264FramerateConversionAlgorithm? = nil, framerateDenominator: Int? = nil, framerateNumerator: Int? = nil, gopBReference: H264GopBReference? = nil, gopClosedCadence: Int? = nil, gopSize: Double? = nil, gopSizeUnits: H264GopSizeUnits? = nil, hrdBufferFinalFillPercentage: Int? = nil, hrdBufferInitialFillPercentage: Int? = nil, hrdBufferSize: Int? = nil, interlaceMode: H264InterlaceMode? = nil, maxBitrate: Int? = nil, minIInterval: Int? = nil, numberBFramesBetweenReferenceFrames: Int? = nil, numberReferenceFrames: Int? = nil, parControl: H264ParControl? = nil, parDenominator: Int? = nil, parNumerator: Int? = nil, perFrameMetrics: [FrameMetricType]? = nil, qualityTuningLevel: H264QualityTuningLevel? = nil, qvbrSettings: H264QvbrSettings? = nil, rateControlMode: H264RateControlMode? = nil, repeatPps: H264RepeatPps? = nil, saliencyAwareEncoding: H264SaliencyAwareEncoding? = nil, scanTypeConversionMode: H264ScanTypeConversionMode? = nil, sceneChangeDetect: H264SceneChangeDetect? = nil, slices: Int? = nil, slowPal: H264SlowPal? = nil, softness: Int? = nil, spatialAdaptiveQuantization: H264SpatialAdaptiveQuantization? = nil, syntax: H264Syntax? = nil, telecine: H264Telecine? = nil, temporalAdaptiveQuantization: H264TemporalAdaptiveQuantization? = nil, unregisteredSeiTimecode: H264UnregisteredSeiTimecode? = nil, writeMp4PackagingType: H264WriteMp4PackagingType? = nil) {
            self.adaptiveQuantization = adaptiveQuantization
            self.bandwidthReductionFilter = bandwidthReductionFilter
            self.bitrate = bitrate
            self.codecLevel = codecLevel
            self.codecProfile = codecProfile
            self.dynamicSubGop = dynamicSubGop
            self.endOfStreamMarkers = endOfStreamMarkers
            self.entropyEncoding = entropyEncoding
            self.fieldEncoding = fieldEncoding
            self.flickerAdaptiveQuantization = flickerAdaptiveQuantization
            self.framerateControl = framerateControl
            self.framerateConversionAlgorithm = framerateConversionAlgorithm
            self.framerateDenominator = framerateDenominator
            self.framerateNumerator = framerateNumerator
            self.gopBReference = gopBReference
            self.gopClosedCadence = gopClosedCadence
            self.gopSize = gopSize
            self.gopSizeUnits = gopSizeUnits
            self.hrdBufferFinalFillPercentage = hrdBufferFinalFillPercentage
            self.hrdBufferInitialFillPercentage = hrdBufferInitialFillPercentage
            self.hrdBufferSize = hrdBufferSize
            self.interlaceMode = interlaceMode
            self.maxBitrate = maxBitrate
            self.minIInterval = minIInterval
            self.numberBFramesBetweenReferenceFrames = numberBFramesBetweenReferenceFrames
            self.numberReferenceFrames = numberReferenceFrames
            self.parControl = parControl
            self.parDenominator = parDenominator
            self.parNumerator = parNumerator
            self.perFrameMetrics = perFrameMetrics
            self.qualityTuningLevel = qualityTuningLevel
            self.qvbrSettings = qvbrSettings
            self.rateControlMode = rateControlMode
            self.repeatPps = repeatPps
            self.saliencyAwareEncoding = saliencyAwareEncoding
            self.scanTypeConversionMode = scanTypeConversionMode
            self.sceneChangeDetect = sceneChangeDetect
            self.slices = slices
            self.slowPal = slowPal
            self.softness = softness
            self.spatialAdaptiveQuantization = spatialAdaptiveQuantization
            self.syntax = syntax
            self.telecine = telecine
            self.temporalAdaptiveQuantization = temporalAdaptiveQuantization
            self.unregisteredSeiTimecode = unregisteredSeiTimecode
            self.writeMp4PackagingType = writeMp4PackagingType
        }

        public func validate(name: String) throws {
            try self.validate(self.bitrate, name: "bitrate", parent: name, max: 1152000000)
            try self.validate(self.bitrate, name: "bitrate", parent: name, min: 1000)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, max: 2147483647)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, min: 1)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, max: 2147483647)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, min: 1)
            try self.validate(self.gopClosedCadence, name: "gopClosedCadence", parent: name, max: 2147483647)
            try self.validate(self.gopClosedCadence, name: "gopClosedCadence", parent: name, min: 0)
            try self.validate(self.hrdBufferFinalFillPercentage, name: "hrdBufferFinalFillPercentage", parent: name, max: 100)
            try self.validate(self.hrdBufferFinalFillPercentage, name: "hrdBufferFinalFillPercentage", parent: name, min: 0)
            try self.validate(self.hrdBufferInitialFillPercentage, name: "hrdBufferInitialFillPercentage", parent: name, max: 100)
            try self.validate(self.hrdBufferInitialFillPercentage, name: "hrdBufferInitialFillPercentage", parent: name, min: 0)
            try self.validate(self.hrdBufferSize, name: "hrdBufferSize", parent: name, max: 1152000000)
            try self.validate(self.hrdBufferSize, name: "hrdBufferSize", parent: name, min: 0)
            try self.validate(self.maxBitrate, name: "maxBitrate", parent: name, max: 1152000000)
            try self.validate(self.maxBitrate, name: "maxBitrate", parent: name, min: 1000)
            try self.validate(self.minIInterval, name: "minIInterval", parent: name, max: 30)
            try self.validate(self.minIInterval, name: "minIInterval", parent: name, min: 0)
            try self.validate(self.numberBFramesBetweenReferenceFrames, name: "numberBFramesBetweenReferenceFrames", parent: name, max: 7)
            try self.validate(self.numberBFramesBetweenReferenceFrames, name: "numberBFramesBetweenReferenceFrames", parent: name, min: 0)
            try self.validate(self.numberReferenceFrames, name: "numberReferenceFrames", parent: name, max: 6)
            try self.validate(self.numberReferenceFrames, name: "numberReferenceFrames", parent: name, min: 1)
            try self.validate(self.parDenominator, name: "parDenominator", parent: name, max: 2147483647)
            try self.validate(self.parDenominator, name: "parDenominator", parent: name, min: 1)
            try self.validate(self.parNumerator, name: "parNumerator", parent: name, max: 2147483647)
            try self.validate(self.parNumerator, name: "parNumerator", parent: name, min: 1)
            try self.qvbrSettings?.validate(name: "\(name).qvbrSettings")
            try self.validate(self.slices, name: "slices", parent: name, max: 32)
            try self.validate(self.slices, name: "slices", parent: name, min: 1)
            try self.validate(self.softness, name: "softness", parent: name, max: 128)
            try self.validate(self.softness, name: "softness", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case adaptiveQuantization = "adaptiveQuantization"
            case bandwidthReductionFilter = "bandwidthReductionFilter"
            case bitrate = "bitrate"
            case codecLevel = "codecLevel"
            case codecProfile = "codecProfile"
            case dynamicSubGop = "dynamicSubGop"
            case endOfStreamMarkers = "endOfStreamMarkers"
            case entropyEncoding = "entropyEncoding"
            case fieldEncoding = "fieldEncoding"
            case flickerAdaptiveQuantization = "flickerAdaptiveQuantization"
            case framerateControl = "framerateControl"
            case framerateConversionAlgorithm = "framerateConversionAlgorithm"
            case framerateDenominator = "framerateDenominator"
            case framerateNumerator = "framerateNumerator"
            case gopBReference = "gopBReference"
            case gopClosedCadence = "gopClosedCadence"
            case gopSize = "gopSize"
            case gopSizeUnits = "gopSizeUnits"
            case hrdBufferFinalFillPercentage = "hrdBufferFinalFillPercentage"
            case hrdBufferInitialFillPercentage = "hrdBufferInitialFillPercentage"
            case hrdBufferSize = "hrdBufferSize"
            case interlaceMode = "interlaceMode"
            case maxBitrate = "maxBitrate"
            case minIInterval = "minIInterval"
            case numberBFramesBetweenReferenceFrames = "numberBFramesBetweenReferenceFrames"
            case numberReferenceFrames = "numberReferenceFrames"
            case parControl = "parControl"
            case parDenominator = "parDenominator"
            case parNumerator = "parNumerator"
            case perFrameMetrics = "perFrameMetrics"
            case qualityTuningLevel = "qualityTuningLevel"
            case qvbrSettings = "qvbrSettings"
            case rateControlMode = "rateControlMode"
            case repeatPps = "repeatPps"
            case saliencyAwareEncoding = "saliencyAwareEncoding"
            case scanTypeConversionMode = "scanTypeConversionMode"
            case sceneChangeDetect = "sceneChangeDetect"
            case slices = "slices"
            case slowPal = "slowPal"
            case softness = "softness"
            case spatialAdaptiveQuantization = "spatialAdaptiveQuantization"
            case syntax = "syntax"
            case telecine = "telecine"
            case temporalAdaptiveQuantization = "temporalAdaptiveQuantization"
            case unregisteredSeiTimecode = "unregisteredSeiTimecode"
            case writeMp4PackagingType = "writeMp4PackagingType"
        }
    }

    public struct H265QvbrSettings: AWSEncodableShape & AWSDecodableShape {
        /// Use this setting only when Rate control mode is QVBR and Quality tuning level is Multi-pass HQ. For Max average bitrate values suited to the complexity of your input video, the service limits the average bitrate of the video part of this output to the value that you choose. That is, the total size of the video element is less than or equal to the value you set multiplied by the number of seconds of encoded output.
        public let maxAverageBitrate: Int?
        /// Use this setting only when you set Rate control mode to QVBR. Specify the target quality level for this output. MediaConvert determines the right number of bits to use for each part of the video to maintain the video quality that you specify. When you keep the default value, AUTO, MediaConvert picks a quality level for you, based on characteristics of your input video. If you prefer to specify a quality level, specify a number from 1 through 10. Use higher numbers for greater quality. Level 10 results in nearly lossless compression. The quality level for most broadcast-quality transcodes is between 6 and 9. Optionally, to specify a value between whole numbers, also provide a value for the setting qvbrQualityLevelFineTune. For example, if you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33.
        public let qvbrQualityLevel: Int?
        /// Optional. Specify a value here to set the QVBR quality to a level that is between whole numbers. For example, if you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33. MediaConvert rounds your QVBR quality level to the nearest third of a whole number. For example, if you set qvbrQualityLevel to 7 and you set qvbrQualityLevelFineTune to .25, your actual QVBR quality level is 7.33.
        public let qvbrQualityLevelFineTune: Double?

        @inlinable
        public init(maxAverageBitrate: Int? = nil, qvbrQualityLevel: Int? = nil, qvbrQualityLevelFineTune: Double? = nil) {
            self.maxAverageBitrate = maxAverageBitrate
            self.qvbrQualityLevel = qvbrQualityLevel
            self.qvbrQualityLevelFineTune = qvbrQualityLevelFineTune
        }

        public func validate(name: String) throws {
            try self.validate(self.maxAverageBitrate, name: "maxAverageBitrate", parent: name, max: 1466400000)
            try self.validate(self.maxAverageBitrate, name: "maxAverageBitrate", parent: name, min: 1000)
            try self.validate(self.qvbrQualityLevel, name: "qvbrQualityLevel", parent: name, max: 10)
            try self.validate(self.qvbrQualityLevel, name: "qvbrQualityLevel", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case maxAverageBitrate = "maxAverageBitrate"
            case qvbrQualityLevel = "qvbrQualityLevel"
            case qvbrQualityLevelFineTune = "qvbrQualityLevelFineTune"
        }
    }

    public struct H265Settings: AWSEncodableShape & AWSDecodableShape {
        /// When you set Adaptive Quantization to Auto, or leave blank, MediaConvert automatically applies quantization to improve the video quality of your output. Set Adaptive Quantization to Low, Medium, High, Higher, or Max to manually control the strength of the quantization filter. When you do, you can specify a value for Spatial Adaptive Quantization, Temporal Adaptive Quantization, and Flicker Adaptive Quantization, to further control the quantization filter. Set Adaptive Quantization to Off to apply no quantization to your output.
        public let adaptiveQuantization: H265AdaptiveQuantization?
        /// Enables Alternate Transfer Function SEI message for outputs using Hybrid Log Gamma (HLG) Electro-Optical Transfer Function (EOTF).
        public let alternateTransferFunctionSei: H265AlternateTransferFunctionSei?
        /// The Bandwidth reduction filter increases the video quality of your output relative to its bitrate. Use to lower the bitrate of your constant quality QVBR output, with little or no perceptual decrease in quality. Or, use to increase the video quality of outputs with other rate control modes relative to the bitrate that you specify. Bandwidth reduction increases further when your input is low quality or noisy. Outputs that use this feature incur pro-tier pricing. When you include Bandwidth reduction filter, you cannot include the Noise reducer preprocessor.
        public let bandwidthReductionFilter: BandwidthReductionFilter?
        /// Specify the average bitrate in bits per second. Required for VBR and CBR. For MS Smooth outputs, bitrates must be unique when rounded down to the nearest multiple of 1000.
        public let bitrate: Int?
        /// H.265 Level.
        public let codecLevel: H265CodecLevel?
        /// Represents the Profile and Tier, per the HEVC (H.265) specification. Selections are grouped as [Profile] / [Tier], so "Main/High" represents Main Profile with High Tier. 4:2:2 profiles are only available with the HEVC 4:2:2 License.
        public let codecProfile: H265CodecProfile?
        /// Use Deblocking to improve the video quality of your output by smoothing the edges of macroblock artifacts created during video compression. To reduce blocking artifacts at block boundaries, and improve overall video quality: Keep the default value, Enabled. To not apply any deblocking: Choose Disabled. Visible block edge artifacts might appear in the output, especially at lower bitrates.
        public let deblocking: H265Deblocking?
        /// Specify whether to allow the number of B-frames in your output GOP structure to vary or not depending on your input video content. To improve the subjective video quality of your output that has high-motion content: Leave blank or keep the default value Adaptive. MediaConvert will use fewer B-frames for high-motion video content than low-motion content. The maximum number of B- frames is limited by the value that you choose for B-frames between reference frames. To use the same number B-frames for all types of content: Choose Static.
        public let dynamicSubGop: H265DynamicSubGop?
        /// Optionally include or suppress markers at the end of your output that signal the end of the video stream. To include end of stream markers: Leave blank or keep the default value, Include. To not include end of stream markers: Choose Suppress. This is useful when your output will be inserted into another stream.
        public let endOfStreamMarkers: H265EndOfStreamMarkers?
        /// Enable this setting to have the encoder reduce I-frame pop. I-frame pop appears as a visual flicker that can arise when the encoder saves bits by copying some macroblocks many times from frame to frame, and then refreshes them at the I-frame. When you enable this setting, the encoder updates these macroblocks slightly more often to smooth out the flicker. This setting is disabled by default. Related setting: In addition to enabling this setting, you must also set adaptiveQuantization to a value other than Off.
        public let flickerAdaptiveQuantization: H265FlickerAdaptiveQuantization?
        /// Use the Framerate setting to specify the frame rate for this output. If you want to keep the same frame rate as the input video, choose Follow source. If you want to do frame rate conversion, choose a frame rate from the dropdown list or choose Custom. The framerates shown in the dropdown list are decimal approximations of fractions. If you choose Custom, specify your frame rate as a fraction.
        public let framerateControl: H265FramerateControl?
        /// Choose the method that you want MediaConvert to use when increasing or decreasing your video's frame rate. For numerically simple conversions, such as 60 fps to 30 fps: We recommend that you keep the default value, Drop duplicate. For numerically complex conversions, to avoid stutter: Choose Interpolate. This results in a smooth picture, but might introduce undesirable video artifacts. For complex frame rate conversions, especially if your source video has already been converted from its original cadence: Choose FrameFormer to do motion-compensated interpolation. FrameFormer uses the best conversion method frame by frame. Note that using FrameFormer increases the transcoding time and incurs a significant add-on cost. When you choose FrameFormer, your input video resolution must be at least 128x96. To create an output with the same number of frames as your input: Choose Maintain frame count. When you do, MediaConvert will not drop, interpolate, add, or otherwise change the frame count from your input to your output. Note that since the frame count is maintained, the duration of your output will become shorter at higher frame rates and longer at lower frame rates.
        public let framerateConversionAlgorithm: H265FramerateConversionAlgorithm?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateDenominator to specify the denominator of this fraction. In this example, use 1001 for the value of FramerateDenominator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateDenominator: Int?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateNumerator to specify the numerator of this fraction. In this example, use 24000 for the value of FramerateNumerator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateNumerator: Int?
        /// Specify whether to allow B-frames to be referenced by other frame types. To use reference B-frames when your GOP structure has 1 or more B-frames: Leave blank or keep the default value Enabled. We recommend that you choose Enabled to help improve the video quality of your output relative to its bitrate. To not use reference B-frames: Choose Disabled.
        public let gopBReference: H265GopBReference?
        /// Specify the relative frequency of open to closed GOPs in this output. For example, if you want to allow four open GOPs and then require a closed GOP, set this value to 5. We recommend that you have the transcoder automatically choose this value for you based on characteristics of your input video. To enable this automatic behavior, do this by keeping the default empty value. If you do explicitly specify a value, for segmented outputs, don't set this value to 0.
        public let gopClosedCadence: Int?
        /// Use this setting only when you set GOP mode control to Specified, frames or Specified, seconds. Specify the GOP length using a whole number of frames or a decimal value of seconds. MediaConvert will interpret this value as frames or seconds depending on the value you choose for GOP mode control. If you want to allow MediaConvert to automatically determine GOP size, leave GOP size blank and set GOP mode control to Auto. If your output group specifies HLS, DASH, or CMAF, leave GOP size blank and set GOP mode control to Auto in each output in your output group.
        public let gopSize: Double?
        /// Specify how the transcoder determines GOP size for this output. We recommend that you have the transcoder automatically choose this value for you based on characteristics of your input video. To enable this automatic behavior, choose Auto and and leave GOP size blank. By default, if you don't specify GOP mode control, MediaConvert will use automatic behavior. If your output group specifies HLS, DASH, or CMAF, set GOP mode control to Auto and leave GOP size blank in each output in your output group. To explicitly specify the GOP length, choose Specified, frames or Specified, seconds and then provide the GOP length in the related setting GOP size.
        public let gopSizeUnits: H265GopSizeUnits?
        /// If your downstream systems have strict buffer requirements: Specify the minimum percentage of the HRD buffer that's available at the end of each encoded video segment. For the best video quality: Set to 0 or leave blank to automatically determine the final buffer fill percentage.
        public let hrdBufferFinalFillPercentage: Int?
        /// Percentage of the buffer that should initially be filled (HRD buffer model).
        public let hrdBufferInitialFillPercentage: Int?
        /// Size of buffer (HRD buffer model) in bits. For example, enter five megabits as 5000000.
        public let hrdBufferSize: Int?
        /// Choose the scan line type for the output. Keep the default value, Progressive to create a progressive output, regardless of the scan type of your input. Use Top field first or Bottom field first to create an output that's interlaced with the same field polarity throughout. Use Follow, default top or Follow, default bottom to produce outputs with the same field polarity as the source. For jobs that have multiple inputs, the output field polarity might change over the course of the output. Follow behavior depends on the input scan type. If the source is interlaced, the output will be interlaced with the same polarity as the source. If the source is progressive, the output will be interlaced with top field bottom field first, depending on which of the Follow options you choose.
        public let interlaceMode: H265InterlaceMode?
        /// Maximum bitrate in bits/second. For example, enter five megabits per second as 5000000. Required when Rate control mode is QVBR.
        public let maxBitrate: Int?
        /// Specify the minimum number of frames allowed between two IDR-frames in your output. This includes frames created at the start of a GOP or a scene change. Use Min I-Interval to improve video compression by varying GOP size when two IDR-frames would be created near each other. For example, if a regular cadence-driven IDR-frame would fall within 5 frames of a scene-change IDR-frame, and you set Min I-interval to 5, then the encoder would only write an IDR-frame for the scene-change. In this way, one GOP is shortened or extended. If a cadence-driven IDR-frame would be further than 5 frames from a scene-change IDR-frame, then the encoder leaves all IDR-frames in place. To use an automatically determined interval: We recommend that you keep this value blank. This allows for MediaConvert to use an optimal setting according to the characteristics of your input video, and results in better video compression. To manually specify an interval: Enter a value from 1 to 30. Use when your downstream systems have specific GOP size requirements. To disable GOP size variance: Enter 0. MediaConvert will only create IDR-frames at the start of your output's cadence-driven GOP. Use when your downstream systems require a regular GOP size.
        public let minIInterval: Int?
        /// Specify the number of B-frames between reference frames in this output. For the best video quality: Leave blank. MediaConvert automatically determines the number of B-frames to use based on the characteristics of your input video. To manually specify the number of B-frames between reference frames: Enter an integer from 0 to 7.
        public let numberBFramesBetweenReferenceFrames: Int?
        /// Number of reference frames to use. The encoder may use more than requested if using B-frames and/or interlaced encoding.
        public let numberReferenceFrames: Int?
        /// Optional. Specify how the service determines the pixel aspect ratio (PAR) for this output. The default behavior, Follow source, uses the PAR from your input video for your output. To specify a different PAR, choose any value other than Follow source. When you choose SPECIFIED for this setting, you must also specify values for the parNumerator and parDenominator settings.
        public let parControl: H265ParControl?
        /// Required when you set Pixel aspect ratio to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parDenominator is 33.
        public let parDenominator: Int?
        /// Required when you set Pixel aspect ratio to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parNumerator is 40.
        public let parNumerator: Int?
        /// Optionally choose one or more per frame metric reports to generate along with your output. You can use these metrics to analyze your video output according to one or more commonly used image quality metrics. You can specify per frame metrics for output groups or for individual outputs. When you do, MediaConvert writes a CSV (Comma-Separated Values) file to your S3 output destination, named after the output name and metric type. For example: videofile_PSNR.csv Jobs that generate per frame metrics will take longer to complete, depending on the resolution and complexity of your output. For example, some 4K jobs might take up to twice as long to complete. Note that when analyzing the video quality of your output, or when comparing the video quality of multiple different outputs, we generally also recommend a detailed visual review in a controlled environment. You can choose from the following per frame metrics: * PSNR: Peak Signal-to-Noise Ratio * SSIM: Structural Similarity Index Measure * MS_SSIM: Multi-Scale Similarity Index Measure * PSNR_HVS: Peak Signal-to-Noise Ratio, Human Visual System * VMAF: Video Multi-Method Assessment Fusion * QVBR: Quality-Defined Variable Bitrate. This option is only available when your output uses the QVBR rate control mode.
        public let perFrameMetrics: [FrameMetricType]?
        /// Optional. Use Quality tuning level to choose how you want to trade off encoding speed for output video quality. The default behavior is faster, lower quality, single-pass encoding.
        public let qualityTuningLevel: H265QualityTuningLevel?
        /// Settings for quality-defined variable bitrate encoding with the H.265 codec. Use these settings only when you set QVBR for Rate control mode.
        public let qvbrSettings: H265QvbrSettings?
        /// Use this setting to specify whether this output has a variable bitrate (VBR), constant bitrate (CBR) or quality-defined variable bitrate (QVBR).
        public let rateControlMode: H265RateControlMode?
        /// Specify Sample Adaptive Offset (SAO) filter strength. Adaptive mode dynamically selects best strength based on content
        public let sampleAdaptiveOffsetFilterMode: H265SampleAdaptiveOffsetFilterMode?
        /// Use this setting for interlaced outputs, when your output frame rate is half of your input frame rate. In this situation, choose Optimized interlacing to create a better quality interlaced output. In this case, each progressive frame from the input corresponds to an interlaced field in the output. Keep the default value, Basic interlacing, for all other output frame rates. With basic interlacing, MediaConvert performs any frame rate conversion first and then interlaces the frames. When you choose Optimized interlacing and you set your output frame rate to a value that isn't suitable for optimized interlacing, MediaConvert automatically falls back to basic interlacing. Required settings: To use optimized interlacing, you must set Telecine to None or Soft. You can't use optimized interlacing for hard telecine outputs. You must also set Interlace mode to a value other than Progressive.
        public let scanTypeConversionMode: H265ScanTypeConversionMode?
        /// Enable this setting to insert I-frames at scene changes that the service automatically detects. This improves video quality and is enabled by default. If this output uses QVBR, choose Transition detection for further video quality improvement. For more information about QVBR, see https://docs.aws.amazon.com/console/mediaconvert/cbr-vbr-qvbr.
        public let sceneChangeDetect: H265SceneChangeDetect?
        /// Number of slices per picture. Must be less than or equal to the number of macroblock rows for progressive pictures, and less than or equal to half the number of macroblock rows for interlaced pictures.
        public let slices: Int?
        /// Ignore this setting unless your input frame rate is 23.976 or 24 frames per second (fps). Enable slow PAL to create a 25 fps output. When you enable slow PAL, MediaConvert relabels the video frames to 25 fps and resamples your audio to keep it synchronized with the video. Note that enabling this setting will slightly reduce the duration of your video. Required settings: You must also set Framerate to 25.
        public let slowPal: H265SlowPal?
        /// Keep the default value, Enabled, to adjust quantization within each frame based on spatial variation of content complexity. When you enable this feature, the encoder uses fewer bits on areas that can sustain more distortion with no noticeable visual degradation and uses more bits on areas where any small distortion will be noticeable. For example, complex textured blocks are encoded with fewer bits and smooth textured blocks are encoded with more bits. Enabling this feature will almost always improve your video quality. Note, though, that this feature doesn't take into account where the viewer's attention is likely to be. If viewers are likely to be focusing their attention on a part of the screen with a lot of complex texture, you might choose to disable this feature. Related setting: When you enable spatial adaptive quantization, set the value for Adaptive quantization depending on your content. For homogeneous content, such as cartoons and video games, set it to Low. For content with a wider variety of textures, set it to High or Higher.
        public let spatialAdaptiveQuantization: H265SpatialAdaptiveQuantization?
        /// This field applies only if the Streams > Advanced > Framerate field is set to 29.970. This field works with the Streams > Advanced > Preprocessors > Deinterlacer field and the Streams > Advanced > Interlaced Mode field to identify the scan type for the output: Progressive, Interlaced, Hard Telecine or Soft Telecine. - Hard: produces 29.97i output from 23.976 input. - Soft: produces 23.976; the player converts this output to 29.97i.
        public let telecine: H265Telecine?
        /// Keep the default value, Enabled, to adjust quantization within each frame based on temporal variation of content complexity. When you enable this feature, the encoder uses fewer bits on areas of the frame that aren't moving and uses more bits on complex objects with sharp edges that move a lot. For example, this feature improves the readability of text tickers on newscasts and scoreboards on sports matches. Enabling this feature will almost always improve your video quality. Note, though, that this feature doesn't take into account where the viewer's attention is likely to be. If viewers are likely to be focusing their attention on a part of the screen that doesn't have moving objects with sharp edges, such as sports athletes' faces, you might choose to disable this feature. Related setting: When you enable temporal quantization, adjust the strength of the filter with the setting Adaptive quantization.
        public let temporalAdaptiveQuantization: H265TemporalAdaptiveQuantization?
        /// Enables temporal layer identifiers in the encoded bitstream. Up to 3 layers are supported depending on GOP structure: I- and P-frames form one layer, reference B-frames can form a second layer and non-reference b-frames can form a third layer. Decoders can optionally decode only the lower temporal layers to generate a lower frame rate output. For example, given a bitstream with temporal IDs and with b-frames = 1 (i.e. IbPbPb display order), a decoder could decode all the frames for full frame rate output or only the I and P frames (lowest temporal layer) for a half frame rate output.
        public let temporalIds: H265TemporalIds?
        /// Enable use of tiles, allowing horizontal as well as vertical subdivision of the encoded pictures.
        public let tiles: H265Tiles?
        /// Inserts timecode for each frame as 4 bytes of an unregistered SEI message.
        public let unregisteredSeiTimecode: H265UnregisteredSeiTimecode?
        /// If the location of parameter set NAL units doesn't matter in your workflow, ignore this setting. Use this setting only with CMAF or DASH outputs, or with standalone file outputs in an MPEG-4 container (MP4 outputs). Choose HVC1 to mark your output as HVC1. This makes your output compliant with the following specification: ISO IECJTC1 SC29 N13798 Text ISO/IEC FDIS 14496-15 3rd Edition. For these outputs, the service stores parameter set NAL units in the sample headers but not in the samples directly. For MP4 outputs, when you choose HVC1, your output video might not work properly with some downstream systems and video players. The service defaults to marking your output as HEV1. For these outputs, the service writes parameter set NAL units directly into the samples.
        public let writeMp4PackagingType: H265WriteMp4PackagingType?

        @inlinable
        public init(adaptiveQuantization: H265AdaptiveQuantization? = nil, alternateTransferFunctionSei: H265AlternateTransferFunctionSei? = nil, bandwidthReductionFilter: BandwidthReductionFilter? = nil, bitrate: Int? = nil, codecLevel: H265CodecLevel? = nil, codecProfile: H265CodecProfile? = nil, deblocking: H265Deblocking? = nil, dynamicSubGop: H265DynamicSubGop? = nil, endOfStreamMarkers: H265EndOfStreamMarkers? = nil, flickerAdaptiveQuantization: H265FlickerAdaptiveQuantization? = nil, framerateControl: H265FramerateControl? = nil, framerateConversionAlgorithm: H265FramerateConversionAlgorithm? = nil, framerateDenominator: Int? = nil, framerateNumerator: Int? = nil, gopBReference: H265GopBReference? = nil, gopClosedCadence: Int? = nil, gopSize: Double? = nil, gopSizeUnits: H265GopSizeUnits? = nil, hrdBufferFinalFillPercentage: Int? = nil, hrdBufferInitialFillPercentage: Int? = nil, hrdBufferSize: Int? = nil, interlaceMode: H265InterlaceMode? = nil, maxBitrate: Int? = nil, minIInterval: Int? = nil, numberBFramesBetweenReferenceFrames: Int? = nil, numberReferenceFrames: Int? = nil, parControl: H265ParControl? = nil, parDenominator: Int? = nil, parNumerator: Int? = nil, perFrameMetrics: [FrameMetricType]? = nil, qualityTuningLevel: H265QualityTuningLevel? = nil, qvbrSettings: H265QvbrSettings? = nil, rateControlMode: H265RateControlMode? = nil, sampleAdaptiveOffsetFilterMode: H265SampleAdaptiveOffsetFilterMode? = nil, scanTypeConversionMode: H265ScanTypeConversionMode? = nil, sceneChangeDetect: H265SceneChangeDetect? = nil, slices: Int? = nil, slowPal: H265SlowPal? = nil, spatialAdaptiveQuantization: H265SpatialAdaptiveQuantization? = nil, telecine: H265Telecine? = nil, temporalAdaptiveQuantization: H265TemporalAdaptiveQuantization? = nil, temporalIds: H265TemporalIds? = nil, tiles: H265Tiles? = nil, unregisteredSeiTimecode: H265UnregisteredSeiTimecode? = nil, writeMp4PackagingType: H265WriteMp4PackagingType? = nil) {
            self.adaptiveQuantization = adaptiveQuantization
            self.alternateTransferFunctionSei = alternateTransferFunctionSei
            self.bandwidthReductionFilter = bandwidthReductionFilter
            self.bitrate = bitrate
            self.codecLevel = codecLevel
            self.codecProfile = codecProfile
            self.deblocking = deblocking
            self.dynamicSubGop = dynamicSubGop
            self.endOfStreamMarkers = endOfStreamMarkers
            self.flickerAdaptiveQuantization = flickerAdaptiveQuantization
            self.framerateControl = framerateControl
            self.framerateConversionAlgorithm = framerateConversionAlgorithm
            self.framerateDenominator = framerateDenominator
            self.framerateNumerator = framerateNumerator
            self.gopBReference = gopBReference
            self.gopClosedCadence = gopClosedCadence
            self.gopSize = gopSize
            self.gopSizeUnits = gopSizeUnits
            self.hrdBufferFinalFillPercentage = hrdBufferFinalFillPercentage
            self.hrdBufferInitialFillPercentage = hrdBufferInitialFillPercentage
            self.hrdBufferSize = hrdBufferSize
            self.interlaceMode = interlaceMode
            self.maxBitrate = maxBitrate
            self.minIInterval = minIInterval
            self.numberBFramesBetweenReferenceFrames = numberBFramesBetweenReferenceFrames
            self.numberReferenceFrames = numberReferenceFrames
            self.parControl = parControl
            self.parDenominator = parDenominator
            self.parNumerator = parNumerator
            self.perFrameMetrics = perFrameMetrics
            self.qualityTuningLevel = qualityTuningLevel
            self.qvbrSettings = qvbrSettings
            self.rateControlMode = rateControlMode
            self.sampleAdaptiveOffsetFilterMode = sampleAdaptiveOffsetFilterMode
            self.scanTypeConversionMode = scanTypeConversionMode
            self.sceneChangeDetect = sceneChangeDetect
            self.slices = slices
            self.slowPal = slowPal
            self.spatialAdaptiveQuantization = spatialAdaptiveQuantization
            self.telecine = telecine
            self.temporalAdaptiveQuantization = temporalAdaptiveQuantization
            self.temporalIds = temporalIds
            self.tiles = tiles
            self.unregisteredSeiTimecode = unregisteredSeiTimecode
            self.writeMp4PackagingType = writeMp4PackagingType
        }

        public func validate(name: String) throws {
            try self.validate(self.bitrate, name: "bitrate", parent: name, max: 1466400000)
            try self.validate(self.bitrate, name: "bitrate", parent: name, min: 1000)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, max: 2147483647)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, min: 1)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, max: 2147483647)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, min: 1)
            try self.validate(self.gopClosedCadence, name: "gopClosedCadence", parent: name, max: 2147483647)
            try self.validate(self.gopClosedCadence, name: "gopClosedCadence", parent: name, min: 0)
            try self.validate(self.hrdBufferFinalFillPercentage, name: "hrdBufferFinalFillPercentage", parent: name, max: 100)
            try self.validate(self.hrdBufferFinalFillPercentage, name: "hrdBufferFinalFillPercentage", parent: name, min: 0)
            try self.validate(self.hrdBufferInitialFillPercentage, name: "hrdBufferInitialFillPercentage", parent: name, max: 100)
            try self.validate(self.hrdBufferInitialFillPercentage, name: "hrdBufferInitialFillPercentage", parent: name, min: 0)
            try self.validate(self.hrdBufferSize, name: "hrdBufferSize", parent: name, max: 1466400000)
            try self.validate(self.hrdBufferSize, name: "hrdBufferSize", parent: name, min: 0)
            try self.validate(self.maxBitrate, name: "maxBitrate", parent: name, max: 1466400000)
            try self.validate(self.maxBitrate, name: "maxBitrate", parent: name, min: 1000)
            try self.validate(self.minIInterval, name: "minIInterval", parent: name, max: 30)
            try self.validate(self.minIInterval, name: "minIInterval", parent: name, min: 0)
            try self.validate(self.numberBFramesBetweenReferenceFrames, name: "numberBFramesBetweenReferenceFrames", parent: name, max: 7)
            try self.validate(self.numberBFramesBetweenReferenceFrames, name: "numberBFramesBetweenReferenceFrames", parent: name, min: 0)
            try self.validate(self.numberReferenceFrames, name: "numberReferenceFrames", parent: name, max: 6)
            try self.validate(self.numberReferenceFrames, name: "numberReferenceFrames", parent: name, min: 1)
            try self.validate(self.parDenominator, name: "parDenominator", parent: name, max: 2147483647)
            try self.validate(self.parDenominator, name: "parDenominator", parent: name, min: 1)
            try self.validate(self.parNumerator, name: "parNumerator", parent: name, max: 2147483647)
            try self.validate(self.parNumerator, name: "parNumerator", parent: name, min: 1)
            try self.qvbrSettings?.validate(name: "\(name).qvbrSettings")
            try self.validate(self.slices, name: "slices", parent: name, max: 32)
            try self.validate(self.slices, name: "slices", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case adaptiveQuantization = "adaptiveQuantization"
            case alternateTransferFunctionSei = "alternateTransferFunctionSei"
            case bandwidthReductionFilter = "bandwidthReductionFilter"
            case bitrate = "bitrate"
            case codecLevel = "codecLevel"
            case codecProfile = "codecProfile"
            case deblocking = "deblocking"
            case dynamicSubGop = "dynamicSubGop"
            case endOfStreamMarkers = "endOfStreamMarkers"
            case flickerAdaptiveQuantization = "flickerAdaptiveQuantization"
            case framerateControl = "framerateControl"
            case framerateConversionAlgorithm = "framerateConversionAlgorithm"
            case framerateDenominator = "framerateDenominator"
            case framerateNumerator = "framerateNumerator"
            case gopBReference = "gopBReference"
            case gopClosedCadence = "gopClosedCadence"
            case gopSize = "gopSize"
            case gopSizeUnits = "gopSizeUnits"
            case hrdBufferFinalFillPercentage = "hrdBufferFinalFillPercentage"
            case hrdBufferInitialFillPercentage = "hrdBufferInitialFillPercentage"
            case hrdBufferSize = "hrdBufferSize"
            case interlaceMode = "interlaceMode"
            case maxBitrate = "maxBitrate"
            case minIInterval = "minIInterval"
            case numberBFramesBetweenReferenceFrames = "numberBFramesBetweenReferenceFrames"
            case numberReferenceFrames = "numberReferenceFrames"
            case parControl = "parControl"
            case parDenominator = "parDenominator"
            case parNumerator = "parNumerator"
            case perFrameMetrics = "perFrameMetrics"
            case qualityTuningLevel = "qualityTuningLevel"
            case qvbrSettings = "qvbrSettings"
            case rateControlMode = "rateControlMode"
            case sampleAdaptiveOffsetFilterMode = "sampleAdaptiveOffsetFilterMode"
            case scanTypeConversionMode = "scanTypeConversionMode"
            case sceneChangeDetect = "sceneChangeDetect"
            case slices = "slices"
            case slowPal = "slowPal"
            case spatialAdaptiveQuantization = "spatialAdaptiveQuantization"
            case telecine = "telecine"
            case temporalAdaptiveQuantization = "temporalAdaptiveQuantization"
            case temporalIds = "temporalIds"
            case tiles = "tiles"
            case unregisteredSeiTimecode = "unregisteredSeiTimecode"
            case writeMp4PackagingType = "writeMp4PackagingType"
        }
    }

    public struct Hdr10Metadata: AWSEncodableShape & AWSDecodableShape {
        /// HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
        public let bluePrimaryX: Int?
        /// HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
        public let bluePrimaryY: Int?
        /// HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
        public let greenPrimaryX: Int?
        /// HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
        public let greenPrimaryY: Int?
        /// Maximum light level among all samples in the coded video sequence, in units of candelas per square meter. This setting doesn't have a default value; you must specify a value that is suitable for the content.
        public let maxContentLightLevel: Int?
        /// Maximum average light level of any frame in the coded video sequence, in units of candelas per square meter. This setting doesn't have a default value; you must specify a value that is suitable for the content.
        public let maxFrameAverageLightLevel: Int?
        /// Nominal maximum mastering display luminance in units of of 0.0001 candelas per square meter.
        public let maxLuminance: Int?
        /// Nominal minimum mastering display luminance in units of of 0.0001 candelas per square meter
        public let minLuminance: Int?
        /// HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
        public let redPrimaryX: Int?
        /// HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
        public let redPrimaryY: Int?
        /// HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
        public let whitePointX: Int?
        /// HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
        public let whitePointY: Int?

        @inlinable
        public init(bluePrimaryX: Int? = nil, bluePrimaryY: Int? = nil, greenPrimaryX: Int? = nil, greenPrimaryY: Int? = nil, maxContentLightLevel: Int? = nil, maxFrameAverageLightLevel: Int? = nil, maxLuminance: Int? = nil, minLuminance: Int? = nil, redPrimaryX: Int? = nil, redPrimaryY: Int? = nil, whitePointX: Int? = nil, whitePointY: Int? = nil) {
            self.bluePrimaryX = bluePrimaryX
            self.bluePrimaryY = bluePrimaryY
            self.greenPrimaryX = greenPrimaryX
            self.greenPrimaryY = greenPrimaryY
            self.maxContentLightLevel = maxContentLightLevel
            self.maxFrameAverageLightLevel = maxFrameAverageLightLevel
            self.maxLuminance = maxLuminance
            self.minLuminance = minLuminance
            self.redPrimaryX = redPrimaryX
            self.redPrimaryY = redPrimaryY
            self.whitePointX = whitePointX
            self.whitePointY = whitePointY
        }

        public func validate(name: String) throws {
            try self.validate(self.bluePrimaryX, name: "bluePrimaryX", parent: name, max: 50000)
            try self.validate(self.bluePrimaryX, name: "bluePrimaryX", parent: name, min: 0)
            try self.validate(self.bluePrimaryY, name: "bluePrimaryY", parent: name, max: 50000)
            try self.validate(self.bluePrimaryY, name: "bluePrimaryY", parent: name, min: 0)
            try self.validate(self.greenPrimaryX, name: "greenPrimaryX", parent: name, max: 50000)
            try self.validate(self.greenPrimaryX, name: "greenPrimaryX", parent: name, min: 0)
            try self.validate(self.greenPrimaryY, name: "greenPrimaryY", parent: name, max: 50000)
            try self.validate(self.greenPrimaryY, name: "greenPrimaryY", parent: name, min: 0)
            try self.validate(self.maxContentLightLevel, name: "maxContentLightLevel", parent: name, max: 65535)
            try self.validate(self.maxContentLightLevel, name: "maxContentLightLevel", parent: name, min: 0)
            try self.validate(self.maxFrameAverageLightLevel, name: "maxFrameAverageLightLevel", parent: name, max: 65535)
            try self.validate(self.maxFrameAverageLightLevel, name: "maxFrameAverageLightLevel", parent: name, min: 0)
            try self.validate(self.maxLuminance, name: "maxLuminance", parent: name, max: 2147483647)
            try self.validate(self.maxLuminance, name: "maxLuminance", parent: name, min: 0)
            try self.validate(self.minLuminance, name: "minLuminance", parent: name, max: 2147483647)
            try self.validate(self.minLuminance, name: "minLuminance", parent: name, min: 0)
            try self.validate(self.redPrimaryX, name: "redPrimaryX", parent: name, max: 50000)
            try self.validate(self.redPrimaryX, name: "redPrimaryX", parent: name, min: 0)
            try self.validate(self.redPrimaryY, name: "redPrimaryY", parent: name, max: 50000)
            try self.validate(self.redPrimaryY, name: "redPrimaryY", parent: name, min: 0)
            try self.validate(self.whitePointX, name: "whitePointX", parent: name, max: 50000)
            try self.validate(self.whitePointX, name: "whitePointX", parent: name, min: 0)
            try self.validate(self.whitePointY, name: "whitePointY", parent: name, max: 50000)
            try self.validate(self.whitePointY, name: "whitePointY", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case bluePrimaryX = "bluePrimaryX"
            case bluePrimaryY = "bluePrimaryY"
            case greenPrimaryX = "greenPrimaryX"
            case greenPrimaryY = "greenPrimaryY"
            case maxContentLightLevel = "maxContentLightLevel"
            case maxFrameAverageLightLevel = "maxFrameAverageLightLevel"
            case maxLuminance = "maxLuminance"
            case minLuminance = "minLuminance"
            case redPrimaryX = "redPrimaryX"
            case redPrimaryY = "redPrimaryY"
            case whitePointX = "whitePointX"
            case whitePointY = "whitePointY"
        }
    }

    public struct Hdr10Plus: AWSEncodableShape & AWSDecodableShape {
        /// Specify the HDR10+ mastering display normalized peak luminance, in nits. This is the normalized actual peak luminance of the mastering display, as defined by ST 2094-40.
        public let masteringMonitorNits: Int?
        /// Specify the HDR10+ target display nominal peak luminance, in nits. This is the nominal maximum luminance of the target display as defined by ST 2094-40.
        public let targetMonitorNits: Int?

        @inlinable
        public init(masteringMonitorNits: Int? = nil, targetMonitorNits: Int? = nil) {
            self.masteringMonitorNits = masteringMonitorNits
            self.targetMonitorNits = targetMonitorNits
        }

        public func validate(name: String) throws {
            try self.validate(self.masteringMonitorNits, name: "masteringMonitorNits", parent: name, max: 4000)
            try self.validate(self.masteringMonitorNits, name: "masteringMonitorNits", parent: name, min: 0)
            try self.validate(self.targetMonitorNits, name: "targetMonitorNits", parent: name, max: 4000)
            try self.validate(self.targetMonitorNits, name: "targetMonitorNits", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case masteringMonitorNits = "masteringMonitorNits"
            case targetMonitorNits = "targetMonitorNits"
        }
    }

    public struct HlsAdditionalManifest: AWSEncodableShape & AWSDecodableShape {
        /// Specify a name modifier that the service adds to the name of this manifest to make it different from the file names of the other main manifests in the output group. For example, say that the default main manifest for your HLS group is film-name.m3u8. If you enter "-no-premium" for this setting, then the file name the service generates for this top-level manifest is film-name-no-premium.m3u8. For HLS output groups, specify a manifestNameModifier that is different from the nameModifier of the output. The service uses the output name modifier to create unique names for the individual variant manifests.
        public let manifestNameModifier: String?
        /// Specify the outputs that you want this additional top-level manifest to reference.
        public let selectedOutputs: [String]?

        @inlinable
        public init(manifestNameModifier: String? = nil, selectedOutputs: [String]? = nil) {
            self.manifestNameModifier = manifestNameModifier
            self.selectedOutputs = selectedOutputs
        }

        public func validate(name: String) throws {
            try self.validate(self.manifestNameModifier, name: "manifestNameModifier", parent: name, min: 1)
            try self.selectedOutputs?.forEach {
                try validate($0, name: "selectedOutputs[]", parent: name, min: 1)
            }
        }

        private enum CodingKeys: String, CodingKey {
            case manifestNameModifier = "manifestNameModifier"
            case selectedOutputs = "selectedOutputs"
        }
    }

    public struct HlsCaptionLanguageMapping: AWSEncodableShape & AWSDecodableShape {
        /// Caption channel.
        public let captionChannel: Int?
        /// Specify the language for this captions channel, using the ISO 639-2 or ISO 639-3 three-letter language code
        public let customLanguageCode: String?
        /// Specify the language, using the ISO 639-2 three-letter code listed at https://www.loc.gov/standards/iso639-2/php/code_list.php.
        public let languageCode: LanguageCode?
        /// Caption language description.
        public let languageDescription: String?

        @inlinable
        public init(captionChannel: Int? = nil, customLanguageCode: String? = nil, languageCode: LanguageCode? = nil, languageDescription: String? = nil) {
            self.captionChannel = captionChannel
            self.customLanguageCode = customLanguageCode
            self.languageCode = languageCode
            self.languageDescription = languageDescription
        }

        public func validate(name: String) throws {
            try self.validate(self.captionChannel, name: "captionChannel", parent: name, max: 2147483647)
            try self.validate(self.captionChannel, name: "captionChannel", parent: name, min: -2147483648)
            try self.validate(self.customLanguageCode, name: "customLanguageCode", parent: name, max: 3)
            try self.validate(self.customLanguageCode, name: "customLanguageCode", parent: name, min: 3)
            try self.validate(self.customLanguageCode, name: "customLanguageCode", parent: name, pattern: "^[A-Za-z]{3}$")
        }

        private enum CodingKeys: String, CodingKey {
            case captionChannel = "captionChannel"
            case customLanguageCode = "customLanguageCode"
            case languageCode = "languageCode"
            case languageDescription = "languageDescription"
        }
    }

    public struct HlsEncryptionSettings: AWSEncodableShape & AWSDecodableShape {
        /// This is a 128-bit, 16-byte hex value represented by a 32-character text string. If this parameter is not set then the Initialization Vector will follow the segment number by default.
        public let constantInitializationVector: String?
        /// Encrypts the segments with the given encryption scheme. Leave blank to disable. Selecting 'Disabled' in the web interface also disables encryption.
        public let encryptionMethod: HlsEncryptionType?
        /// The Initialization Vector is a 128-bit number used in conjunction with the key for encrypting blocks. If set to INCLUDE, Initialization Vector is listed in the manifest. Otherwise Initialization Vector is not in the manifest.
        public let initializationVectorInManifest: HlsInitializationVectorInManifest?
        /// Enable this setting to insert the EXT-X-SESSION-KEY element into the master playlist. This allows for offline Apple HLS FairPlay content protection.
        public let offlineEncrypted: HlsOfflineEncrypted?
        /// If your output group type is HLS, DASH, or Microsoft Smooth, use these settings when doing DRM encryption with a SPEKE-compliant key provider. If your output group type is CMAF, use the SpekeKeyProviderCmaf settings instead.
        public let spekeKeyProvider: SpekeKeyProvider?
        /// Use these settings to set up encryption with a static key provider.
        public let staticKeyProvider: StaticKeyProvider?
        /// Specify whether your DRM encryption key is static or from a key provider that follows the SPEKE standard. For more information about SPEKE, see https://docs.aws.amazon.com/speke/latest/documentation/what-is-speke.html.
        public let type: HlsKeyProviderType?

        @inlinable
        public init(constantInitializationVector: String? = nil, encryptionMethod: HlsEncryptionType? = nil, initializationVectorInManifest: HlsInitializationVectorInManifest? = nil, offlineEncrypted: HlsOfflineEncrypted? = nil, spekeKeyProvider: SpekeKeyProvider? = nil, staticKeyProvider: StaticKeyProvider? = nil, type: HlsKeyProviderType? = nil) {
            self.constantInitializationVector = constantInitializationVector
            self.encryptionMethod = encryptionMethod
            self.initializationVectorInManifest = initializationVectorInManifest
            self.offlineEncrypted = offlineEncrypted
            self.spekeKeyProvider = spekeKeyProvider
            self.staticKeyProvider = staticKeyProvider
            self.type = type
        }

        public func validate(name: String) throws {
            try self.validate(self.constantInitializationVector, name: "constantInitializationVector", parent: name, max: 32)
            try self.validate(self.constantInitializationVector, name: "constantInitializationVector", parent: name, min: 32)
            try self.validate(self.constantInitializationVector, name: "constantInitializationVector", parent: name, pattern: "^[0-9a-fA-F]{32}$")
            try self.spekeKeyProvider?.validate(name: "\(name).spekeKeyProvider")
            try self.staticKeyProvider?.validate(name: "\(name).staticKeyProvider")
        }

        private enum CodingKeys: String, CodingKey {
            case constantInitializationVector = "constantInitializationVector"
            case encryptionMethod = "encryptionMethod"
            case initializationVectorInManifest = "initializationVectorInManifest"
            case offlineEncrypted = "offlineEncrypted"
            case spekeKeyProvider = "spekeKeyProvider"
            case staticKeyProvider = "staticKeyProvider"
            case type = "type"
        }
    }

    public struct HlsGroupSettings: AWSEncodableShape & AWSDecodableShape {
        /// By default, the service creates one top-level .m3u8 HLS manifest for each HLS output group in your job. This default manifest references every output in the output group. To create additional top-level manifests that reference a subset of the outputs in the output group, specify a list of them here.
        public let additionalManifests: [HlsAdditionalManifest]?
        /// Choose one or more ad marker types to decorate your Apple HLS manifest. This setting does not determine whether SCTE-35 markers appear in the outputs themselves.
        public let adMarkers: [HlsAdMarkers]?
        /// Ignore this setting unless you are using FairPlay DRM with Verimatrix and you encounter playback issues. Keep the default value, Include, to output audio-only headers. Choose Exclude to remove the audio-only headers from your audio segments.
        public let audioOnlyHeader: HlsAudioOnlyHeader?
        /// A partial URI prefix that will be prepended to each output in the media .m3u8 file. Can be used if base manifest is delivered from a different URL than the main .m3u8 file.
        public let baseUrl: String?
        /// Language to be used on Caption outputs
        public let captionLanguageMappings: [HlsCaptionLanguageMapping]?
        /// Applies only to 608 Embedded output captions. Insert: Include CLOSED-CAPTIONS lines in the manifest. Specify at least one language in the CC1 Language Code field. One CLOSED-CAPTION line is added for each Language Code you specify. Make sure to specify the languages in the order in which they appear in the original source (if the source is embedded format) or the order of the caption selectors (if the source is other than embedded). Otherwise, languages in the manifest will not match up properly with the output captions. None: Include CLOSED-CAPTIONS=NONE line in the manifest. Omit: Omit any CLOSED-CAPTIONS line from the manifest.
        public let captionLanguageSetting: HlsCaptionLanguageSetting?
        /// Set Caption segment length control to Match video to create caption segments that align with the video segments from the first video output in this output group. For example, if the video segments are 2 seconds long, your WebVTT segments will also be 2 seconds long. Keep the default setting, Large segments to create caption segments that are 300 seconds long.
        public let captionSegmentLengthControl: HlsCaptionSegmentLengthControl?
        /// Disable this setting only when your workflow requires the #EXT-X-ALLOW-CACHE:no tag. Otherwise, keep the default value Enabled and control caching in your video distribution set up. For example, use the Cache-Control http header.
        public let clientCache: HlsClientCache?
        /// Specification to use (RFC-6381 or the default RFC-4281) during m3u8 playlist generation.
        public let codecSpecification: HlsCodecSpecification?
        /// Use Destination to specify the S3 output location and the output filename base. Destination accepts format identifiers. If you do not specify the base filename in the URI, the service will use the filename of the input file. If your job has multiple inputs, the service uses the filename of the first input file.
        public let destination: String?
        /// Settings associated with the destination. Will vary based on the type of destination
        public let destinationSettings: DestinationSettings?
        /// Indicates whether segments should be placed in subdirectories.
        public let directoryStructure: HlsDirectoryStructure?
        /// DRM settings.
        public let encryption: HlsEncryptionSettings?
        /// Specify whether MediaConvert generates images for trick play. Keep the default value, None, to not generate any images. Choose Thumbnail to generate tiled thumbnails. Choose Thumbnail and full frame to generate tiled thumbnails and full-resolution images of single frames. MediaConvert creates a child manifest for each set of images that you generate and adds corresponding entries to the parent manifest. A common application for these images is Roku trick mode. The thumbnails and full-frame images that MediaConvert creates with this feature are compatible with this Roku specification: https://developer.roku.com/docs/developer-program/media-playback/trick-mode/hls-and-dash.md
        public let imageBasedTrickPlay: HlsImageBasedTrickPlay?
        /// Tile and thumbnail settings applicable when imageBasedTrickPlay is ADVANCED
        public let imageBasedTrickPlaySettings: HlsImageBasedTrickPlaySettings?
        /// When set to GZIP, compresses HLS playlist.
        public let manifestCompression: HlsManifestCompression?
        /// Indicates whether the output manifest should use floating point values for segment duration.
        public let manifestDurationFormat: HlsManifestDurationFormat?
        /// Keep this setting at the default value of 0, unless you are troubleshooting a problem with how devices play back the end of your video asset. If you know that player devices are hanging on the final segment of your video because the length of your final segment is too short, use this setting to specify a minimum final segment length, in seconds. Choose a value that is greater than or equal to 1 and less than your segment length. When you specify a value for this setting, the encoder will combine any final segment that is shorter than the length that you specify with the previous segment. For example, your segment length is 3 seconds and your final segment is .5 seconds without a minimum final segment length; when you set the minimum final segment length to 1, your final segment is 3.5 seconds.
        public let minFinalSegmentLength: Double?
        /// When set, Minimum Segment Size is enforced by looking ahead and back within the specified range for a nearby avail and extending the segment size if needed.
        public let minSegmentLength: Int?
        /// Indicates whether the .m3u8 manifest file should be generated for this HLS output group.
        public let outputSelection: HlsOutputSelection?
        /// Includes or excludes EXT-X-PROGRAM-DATE-TIME tag in .m3u8 manifest files. The value is calculated as follows: either the program date and time are initialized using the input timecode source, or the time is initialized using the input timecode source and the date is initialized using the timestamp_offset.
        public let programDateTime: HlsProgramDateTime?
        /// Period of insertion of EXT-X-PROGRAM-DATE-TIME entry, in seconds.
        public let programDateTimePeriod: Int?
        /// Specify whether MediaConvert generates HLS manifests while your job is running or when your job is complete. To generate HLS manifests while your job is running: Choose Enabled. Use if you want to play back your content as soon as it's available. MediaConvert writes the parent and child manifests after the first three media segments are written to your destination S3 bucket. It then writes new updated manifests after each additional segment is written. The parent manifest includes the latest BANDWIDTH and AVERAGE-BANDWIDTH attributes, and child manifests include the latest available media segment. When your job completes, the final child playlists include an EXT-X-ENDLIST tag. To generate HLS manifests only when your job completes: Choose Disabled.
        public let progressiveWriteHlsManifest: HlsProgressiveWriteHlsManifest?
        /// When set to SINGLE_FILE, emits program as a single media resource (.ts) file, uses #EXT-X-BYTERANGE tags to index segment for playback.
        public let segmentControl: HlsSegmentControl?
        /// Specify the length, in whole seconds, of each segment. When you don't specify a value, MediaConvert defaults to 10. Related settings: Use Segment length control to specify whether the encoder enforces this value strictly. Use Segment control to specify whether MediaConvert creates separate segment files or one content file that has metadata to mark the segment boundaries.
        public let segmentLength: Int?
        /// Specify how you want MediaConvert to determine segment lengths in this output group. To use the exact value that you specify under Segment length: Choose Exact. Note that this might result in additional I-frames in the output GOP. To create segment lengths that are a multiple of the GOP: Choose Multiple of GOP. MediaConvert will round up the segment lengths to match the next GOP boundary. To have MediaConvert automatically determine a segment duration that is a multiple of both the audio packets and the frame rates: Choose Match. When you do, also specify a target segment duration under Segment length. This is useful for some ad-insertion or segment replacement workflows. Note that Match has the following requirements: - Output containers: Include at least one video output and at least one audio output. Audio-only outputs are not supported. - Output frame rate: Follow source is not supported. - Multiple output frame rates: When you specify multiple outputs, we recommend they share a similar frame rate (as in X/3, X/2, X, or 2X). For example: 5, 15, 30 and 60. Or: 25 and 50. (Outputs must share an integer multiple.) - Output audio codec: Specify Advanced Audio Coding (AAC). - Output sample rate: Choose 48kHz.
        public let segmentLengthControl: HlsSegmentLengthControl?
        /// Specify the number of segments to write to a subdirectory before starting a new one. You must also set Directory structure to Subdirectory per stream for this setting to have an effect.
        public let segmentsPerSubdirectory: Int?
        /// Include or exclude RESOLUTION attribute for video in EXT-X-STREAM-INF tag of variant manifest.
        public let streamInfResolution: HlsStreamInfResolution?
        /// When set to LEGACY, the segment target duration is always rounded up to the nearest integer value above its current value in seconds. When set to SPEC\\_COMPLIANT, the segment target duration is rounded up to the nearest integer value if fraction seconds are greater than or equal to 0.5 (>= 0.5) and rounded down if less than 0.5 (< 0.5). You may need to use LEGACY if your client needs to ensure that the target duration is always longer than the actual duration of the segment. Some older players may experience interrupted playback when the actual duration of a track in a segment is longer than the target duration.
        public let targetDurationCompatibilityMode: HlsTargetDurationCompatibilityMode?
        /// Specify the type of the ID3 frame to use for ID3 timestamps in your output. To include ID3 timestamps: Specify PRIV or TDRL and set ID3 metadata to Passthrough. To exclude ID3 timestamps: Set ID3 timestamp frame type to None.
        public let timedMetadataId3Frame: HlsTimedMetadataId3Frame?
        /// Specify the interval in seconds to write ID3 timestamps in your output. The first timestamp starts at the output timecode and date, and increases incrementally with each ID3 timestamp. To use the default interval of 10 seconds: Leave blank. To include this metadata in your output: Set ID3 timestamp frame type to PRIV or TDRL, and set ID3 metadata to Passthrough.
        public let timedMetadataId3Period: Int?
        /// Provides an extra millisecond delta offset to fine tune the timestamps.
        public let timestampDeltaMilliseconds: Int?

        @inlinable
        public init(additionalManifests: [HlsAdditionalManifest]? = nil, adMarkers: [HlsAdMarkers]? = nil, audioOnlyHeader: HlsAudioOnlyHeader? = nil, baseUrl: String? = nil, captionLanguageMappings: [HlsCaptionLanguageMapping]? = nil, captionLanguageSetting: HlsCaptionLanguageSetting? = nil, captionSegmentLengthControl: HlsCaptionSegmentLengthControl? = nil, clientCache: HlsClientCache? = nil, codecSpecification: HlsCodecSpecification? = nil, destination: String? = nil, destinationSettings: DestinationSettings? = nil, directoryStructure: HlsDirectoryStructure? = nil, encryption: HlsEncryptionSettings? = nil, imageBasedTrickPlay: HlsImageBasedTrickPlay? = nil, imageBasedTrickPlaySettings: HlsImageBasedTrickPlaySettings? = nil, manifestCompression: HlsManifestCompression? = nil, manifestDurationFormat: HlsManifestDurationFormat? = nil, minFinalSegmentLength: Double? = nil, minSegmentLength: Int? = nil, outputSelection: HlsOutputSelection? = nil, programDateTime: HlsProgramDateTime? = nil, programDateTimePeriod: Int? = nil, progressiveWriteHlsManifest: HlsProgressiveWriteHlsManifest? = nil, segmentControl: HlsSegmentControl? = nil, segmentLength: Int? = nil, segmentLengthControl: HlsSegmentLengthControl? = nil, segmentsPerSubdirectory: Int? = nil, streamInfResolution: HlsStreamInfResolution? = nil, targetDurationCompatibilityMode: HlsTargetDurationCompatibilityMode? = nil, timedMetadataId3Frame: HlsTimedMetadataId3Frame? = nil, timedMetadataId3Period: Int? = nil, timestampDeltaMilliseconds: Int? = nil) {
            self.additionalManifests = additionalManifests
            self.adMarkers = adMarkers
            self.audioOnlyHeader = audioOnlyHeader
            self.baseUrl = baseUrl
            self.captionLanguageMappings = captionLanguageMappings
            self.captionLanguageSetting = captionLanguageSetting
            self.captionSegmentLengthControl = captionSegmentLengthControl
            self.clientCache = clientCache
            self.codecSpecification = codecSpecification
            self.destination = destination
            self.destinationSettings = destinationSettings
            self.directoryStructure = directoryStructure
            self.encryption = encryption
            self.imageBasedTrickPlay = imageBasedTrickPlay
            self.imageBasedTrickPlaySettings = imageBasedTrickPlaySettings
            self.manifestCompression = manifestCompression
            self.manifestDurationFormat = manifestDurationFormat
            self.minFinalSegmentLength = minFinalSegmentLength
            self.minSegmentLength = minSegmentLength
            self.outputSelection = outputSelection
            self.programDateTime = programDateTime
            self.programDateTimePeriod = programDateTimePeriod
            self.progressiveWriteHlsManifest = progressiveWriteHlsManifest
            self.segmentControl = segmentControl
            self.segmentLength = segmentLength
            self.segmentLengthControl = segmentLengthControl
            self.segmentsPerSubdirectory = segmentsPerSubdirectory
            self.streamInfResolution = streamInfResolution
            self.targetDurationCompatibilityMode = targetDurationCompatibilityMode
            self.timedMetadataId3Frame = timedMetadataId3Frame
            self.timedMetadataId3Period = timedMetadataId3Period
            self.timestampDeltaMilliseconds = timestampDeltaMilliseconds
        }

        public func validate(name: String) throws {
            try self.additionalManifests?.forEach {
                try $0.validate(name: "\(name).additionalManifests[]")
            }
            try self.captionLanguageMappings?.forEach {
                try $0.validate(name: "\(name).captionLanguageMappings[]")
            }
            try self.validate(self.destination, name: "destination", parent: name, pattern: "^s3:\\/\\/")
            try self.destinationSettings?.validate(name: "\(name).destinationSettings")
            try self.encryption?.validate(name: "\(name).encryption")
            try self.imageBasedTrickPlaySettings?.validate(name: "\(name).imageBasedTrickPlaySettings")
            try self.validate(self.minSegmentLength, name: "minSegmentLength", parent: name, max: 2147483647)
            try self.validate(self.minSegmentLength, name: "minSegmentLength", parent: name, min: 0)
            try self.validate(self.programDateTimePeriod, name: "programDateTimePeriod", parent: name, max: 3600)
            try self.validate(self.programDateTimePeriod, name: "programDateTimePeriod", parent: name, min: 0)
            try self.validate(self.segmentLength, name: "segmentLength", parent: name, max: 2147483647)
            try self.validate(self.segmentLength, name: "segmentLength", parent: name, min: 1)
            try self.validate(self.segmentsPerSubdirectory, name: "segmentsPerSubdirectory", parent: name, max: 2147483647)
            try self.validate(self.segmentsPerSubdirectory, name: "segmentsPerSubdirectory", parent: name, min: 1)
            try self.validate(self.timedMetadataId3Period, name: "timedMetadataId3Period", parent: name, max: 2147483647)
            try self.validate(self.timedMetadataId3Period, name: "timedMetadataId3Period", parent: name, min: -2147483648)
            try self.validate(self.timestampDeltaMilliseconds, name: "timestampDeltaMilliseconds", parent: name, max: 2147483647)
            try self.validate(self.timestampDeltaMilliseconds, name: "timestampDeltaMilliseconds", parent: name, min: -2147483648)
        }

        private enum CodingKeys: String, CodingKey {
            case additionalManifests = "additionalManifests"
            case adMarkers = "adMarkers"
            case audioOnlyHeader = "audioOnlyHeader"
            case baseUrl = "baseUrl"
            case captionLanguageMappings = "captionLanguageMappings"
            case captionLanguageSetting = "captionLanguageSetting"
            case captionSegmentLengthControl = "captionSegmentLengthControl"
            case clientCache = "clientCache"
            case codecSpecification = "codecSpecification"
            case destination = "destination"
            case destinationSettings = "destinationSettings"
            case directoryStructure = "directoryStructure"
            case encryption = "encryption"
            case imageBasedTrickPlay = "imageBasedTrickPlay"
            case imageBasedTrickPlaySettings = "imageBasedTrickPlaySettings"
            case manifestCompression = "manifestCompression"
            case manifestDurationFormat = "manifestDurationFormat"
            case minFinalSegmentLength = "minFinalSegmentLength"
            case minSegmentLength = "minSegmentLength"
            case outputSelection = "outputSelection"
            case programDateTime = "programDateTime"
            case programDateTimePeriod = "programDateTimePeriod"
            case progressiveWriteHlsManifest = "progressiveWriteHlsManifest"
            case segmentControl = "segmentControl"
            case segmentLength = "segmentLength"
            case segmentLengthControl = "segmentLengthControl"
            case segmentsPerSubdirectory = "segmentsPerSubdirectory"
            case streamInfResolution = "streamInfResolution"
            case targetDurationCompatibilityMode = "targetDurationCompatibilityMode"
            case timedMetadataId3Frame = "timedMetadataId3Frame"
            case timedMetadataId3Period = "timedMetadataId3Period"
            case timestampDeltaMilliseconds = "timestampDeltaMilliseconds"
        }
    }

    public struct HlsImageBasedTrickPlaySettings: AWSEncodableShape & AWSDecodableShape {
        /// The cadence MediaConvert follows for generating thumbnails. If set to FOLLOW_IFRAME, MediaConvert generates thumbnails for each IDR frame in the output (matching the GOP cadence). If set to FOLLOW_CUSTOM, MediaConvert generates thumbnails according to the interval you specify in thumbnailInterval.
        public let intervalCadence: HlsIntervalCadence?
        /// Height of each thumbnail within each tile image, in pixels. Leave blank to maintain aspect ratio with thumbnail width. If following the aspect ratio would lead to a total tile height greater than 4096, then the job will be rejected. Must be divisible by 2.
        public let thumbnailHeight: Int?
        /// Enter the interval, in seconds, that MediaConvert uses to generate thumbnails. If the interval you enter doesn't align with the output frame rate, MediaConvert automatically rounds the interval to align with the output frame rate. For example, if the output frame rate is 29.97 frames per second and you enter 5, MediaConvert uses a 150 frame interval to generate thumbnails.
        public let thumbnailInterval: Double?
        /// Width of each thumbnail within each tile image, in pixels. Default is 312. Must be divisible by 8.
        public let thumbnailWidth: Int?
        /// Number of thumbnails in each column of a tile image. Set a value between 2 and 2048. Must be divisible by 2.
        public let tileHeight: Int?
        /// Number of thumbnails in each row of a tile image. Set a value between 1 and 512.
        public let tileWidth: Int?

        @inlinable
        public init(intervalCadence: HlsIntervalCadence? = nil, thumbnailHeight: Int? = nil, thumbnailInterval: Double? = nil, thumbnailWidth: Int? = nil, tileHeight: Int? = nil, tileWidth: Int? = nil) {
            self.intervalCadence = intervalCadence
            self.thumbnailHeight = thumbnailHeight
            self.thumbnailInterval = thumbnailInterval
            self.thumbnailWidth = thumbnailWidth
            self.tileHeight = tileHeight
            self.tileWidth = tileWidth
        }

        public func validate(name: String) throws {
            try self.validate(self.thumbnailHeight, name: "thumbnailHeight", parent: name, max: 4096)
            try self.validate(self.thumbnailHeight, name: "thumbnailHeight", parent: name, min: 2)
            try self.validate(self.thumbnailWidth, name: "thumbnailWidth", parent: name, max: 4096)
            try self.validate(self.thumbnailWidth, name: "thumbnailWidth", parent: name, min: 8)
            try self.validate(self.tileHeight, name: "tileHeight", parent: name, max: 2048)
            try self.validate(self.tileHeight, name: "tileHeight", parent: name, min: 1)
            try self.validate(self.tileWidth, name: "tileWidth", parent: name, max: 512)
            try self.validate(self.tileWidth, name: "tileWidth", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case intervalCadence = "intervalCadence"
            case thumbnailHeight = "thumbnailHeight"
            case thumbnailInterval = "thumbnailInterval"
            case thumbnailWidth = "thumbnailWidth"
            case tileHeight = "tileHeight"
            case tileWidth = "tileWidth"
        }
    }

    public struct HlsRenditionGroupSettings: AWSEncodableShape & AWSDecodableShape {
        /// Optional. Specify alternative group ID
        public let renditionGroupId: String?
        /// Optional. Specify ISO 639-2 or ISO 639-3 code in the language property
        public let renditionLanguageCode: LanguageCode?
        /// Optional. Specify media name
        public let renditionName: String?

        @inlinable
        public init(renditionGroupId: String? = nil, renditionLanguageCode: LanguageCode? = nil, renditionName: String? = nil) {
            self.renditionGroupId = renditionGroupId
            self.renditionLanguageCode = renditionLanguageCode
            self.renditionName = renditionName
        }

        private enum CodingKeys: String, CodingKey {
            case renditionGroupId = "renditionGroupId"
            case renditionLanguageCode = "renditionLanguageCode"
            case renditionName = "renditionName"
        }
    }

    public struct HlsSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specifies the group to which the audio rendition belongs.
        public let audioGroupId: String?
        /// Use this setting only in audio-only outputs. Choose MPEG-2 Transport Stream (M2TS) to create a file in an MPEG2-TS container. Keep the default value Automatic to create an audio-only file in a raw container. Regardless of the value that you specify here, if this output has video, the service will place the output into an MPEG2-TS container.
        public let audioOnlyContainer: HlsAudioOnlyContainer?
        /// List all the audio groups that are used with the video output stream. Input all the audio GROUP-IDs that are associated to the video, separate by ','.
        public let audioRenditionSets: String?
        /// Four types of audio-only tracks are supported: Audio-Only Variant Stream The client can play back this audio-only stream instead of video in low-bandwidth scenarios. Represented as an EXT-X-STREAM-INF in the HLS manifest. Alternate Audio, Auto Select, Default Alternate rendition that the client should try to play back by default. Represented as an EXT-X-MEDIA in the HLS manifest with DEFAULT=YES, AUTOSELECT=YES Alternate Audio, Auto Select, Not Default Alternate rendition that the client may try to play back by default. Represented as an EXT-X-MEDIA in the HLS manifest with DEFAULT=NO, AUTOSELECT=YES Alternate Audio, not Auto Select Alternate rendition that the client will not try to play back by default. Represented as an EXT-X-MEDIA in the HLS manifest with DEFAULT=NO, AUTOSELECT=NO
        public let audioTrackType: HlsAudioTrackType?
        /// Specify whether to flag this audio track as descriptive video service (DVS) in your HLS parent manifest. When you choose Flag, MediaConvert includes the parameter CHARACTERISTICS="public.accessibility.describes-video" in the EXT-X-MEDIA entry for this track. When you keep the default choice, Don't flag, MediaConvert leaves this parameter out. The DVS flag can help with accessibility on Apple devices. For more information, see the Apple documentation.
        public let descriptiveVideoServiceFlag: HlsDescriptiveVideoServiceFlag?
        /// Choose Include to have MediaConvert generate a child manifest that lists only the I-frames for this rendition, in addition to your regular manifest for this rendition. You might use this manifest as part of a workflow that creates preview functions for your video. MediaConvert adds both the I-frame only child manifest and the regular child manifest to the parent manifest. When you don't need the I-frame only child manifest, keep the default value Exclude.
        public let iFrameOnlyManifest: HlsIFrameOnlyManifest?
        /// Use this setting to add an identifying string to the filename of each segment. The service adds this string between the name modifier and segment index number. You can use format identifiers in the string. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/using-variables-in-your-job-settings.html
        public let segmentModifier: String?

        @inlinable
        public init(audioGroupId: String? = nil, audioOnlyContainer: HlsAudioOnlyContainer? = nil, audioRenditionSets: String? = nil, audioTrackType: HlsAudioTrackType? = nil, descriptiveVideoServiceFlag: HlsDescriptiveVideoServiceFlag? = nil, iFrameOnlyManifest: HlsIFrameOnlyManifest? = nil, segmentModifier: String? = nil) {
            self.audioGroupId = audioGroupId
            self.audioOnlyContainer = audioOnlyContainer
            self.audioRenditionSets = audioRenditionSets
            self.audioTrackType = audioTrackType
            self.descriptiveVideoServiceFlag = descriptiveVideoServiceFlag
            self.iFrameOnlyManifest = iFrameOnlyManifest
            self.segmentModifier = segmentModifier
        }

        private enum CodingKeys: String, CodingKey {
            case audioGroupId = "audioGroupId"
            case audioOnlyContainer = "audioOnlyContainer"
            case audioRenditionSets = "audioRenditionSets"
            case audioTrackType = "audioTrackType"
            case descriptiveVideoServiceFlag = "descriptiveVideoServiceFlag"
            case iFrameOnlyManifest = "iFrameOnlyManifest"
            case segmentModifier = "segmentModifier"
        }
    }

    public struct HopDestination: AWSEncodableShape & AWSDecodableShape {
        /// Optional. When you set up a job to use queue hopping, you can specify a different relative priority for the job in the destination queue. If you don't specify, the relative priority will remain the same as in the previous queue.
        public let priority: Int?
        /// Optional unless the job is submitted on the default queue. When you set up a job to use queue hopping, you can specify a destination queue. This queue cannot be the original queue to which the job is submitted. If the original queue isn't the default queue and you don't specify the destination queue, the job will move to the default queue.
        public let queue: String?
        /// Required for setting up a job to use queue hopping. Minimum wait time in minutes until the job can hop to the destination queue. Valid range is 1 to 4320 minutes, inclusive.
        public let waitMinutes: Int?

        @inlinable
        public init(priority: Int? = nil, queue: String? = nil, waitMinutes: Int? = nil) {
            self.priority = priority
            self.queue = queue
            self.waitMinutes = waitMinutes
        }

        public func validate(name: String) throws {
            try self.validate(self.priority, name: "priority", parent: name, max: 50)
            try self.validate(self.priority, name: "priority", parent: name, min: -50)
        }

        private enum CodingKeys: String, CodingKey {
            case priority = "priority"
            case queue = "queue"
            case waitMinutes = "waitMinutes"
        }
    }

    public struct Id3Insertion: AWSEncodableShape & AWSDecodableShape {
        /// Use ID3 tag to provide a fully formed ID3 tag in base64-encode format.
        public let id3: String?
        /// Provide a Timecode in HH:MM:SS:FF or HH:MM:SS;FF format.
        public let timecode: String?

        @inlinable
        public init(id3: String? = nil, timecode: String? = nil) {
            self.id3 = id3
            self.timecode = timecode
        }

        public func validate(name: String) throws {
            try self.validate(self.id3, name: "id3", parent: name, pattern: "^[A-Za-z0-9+\\/]+={0,2}$")
            try self.validate(self.timecode, name: "timecode", parent: name, pattern: "^([01][0-9]|2[0-4]):[0-5][0-9]:[0-5][0-9][:;][0-9]{2}$")
        }

        private enum CodingKeys: String, CodingKey {
            case id3 = "id3"
            case timecode = "timecode"
        }
    }

    public struct ImageInserter: AWSEncodableShape & AWSDecodableShape {
        /// Specify the images that you want to overlay on your video. The images must be PNG or TGA files.
        public let insertableImages: [InsertableImage]?
        /// Specify the reference white level, in nits, for all of your image inserter images. Use to correct brightness levels within HDR10 outputs. For 1,000 nit peak brightness displays, we recommend that you set SDR reference white level to 203 (according to ITU-R BT.2408). Leave blank to use the default value of 100, or specify an integer from 100 to 1000.
        public let sdrReferenceWhiteLevel: Int?

        @inlinable
        public init(insertableImages: [InsertableImage]? = nil, sdrReferenceWhiteLevel: Int? = nil) {
            self.insertableImages = insertableImages
            self.sdrReferenceWhiteLevel = sdrReferenceWhiteLevel
        }

        public func validate(name: String) throws {
            try self.insertableImages?.forEach {
                try $0.validate(name: "\(name).insertableImages[]")
            }
            try self.validate(self.sdrReferenceWhiteLevel, name: "sdrReferenceWhiteLevel", parent: name, max: 1000)
            try self.validate(self.sdrReferenceWhiteLevel, name: "sdrReferenceWhiteLevel", parent: name, min: 100)
        }

        private enum CodingKeys: String, CodingKey {
            case insertableImages = "insertableImages"
            case sdrReferenceWhiteLevel = "sdrReferenceWhiteLevel"
        }
    }

    public struct ImscDestinationSettings: AWSEncodableShape & AWSDecodableShape {
        /// If the IMSC captions track is intended to provide accessibility for people who are deaf or hard of hearing: Set Accessibility subtitles to Enabled. When you do, MediaConvert adds accessibility attributes to your output HLS or DASH manifest. For HLS manifests, MediaConvert adds the following accessibility attributes under EXT-X-MEDIA for this track: CHARACTERISTICS="public.accessibility.describes-spoken-dialog,public.accessibility.describes-music-and-sound" and AUTOSELECT="YES". For DASH manifests, MediaConvert adds the following in the adaptation set for this track: . If the captions track is not intended to provide such accessibility: Keep the default value, Disabled. When you do, for DASH manifests, MediaConvert instead adds the following in the adaptation set for this track: .
        public let accessibility: ImscAccessibilitySubs?
        /// Keep this setting enabled to have MediaConvert use the font style and position information from the captions source in the output. This option is available only when your input captions are IMSC, SMPTE-TT, or TTML. Disable this setting for simplified output captions.
        public let stylePassthrough: ImscStylePassthrough?

        @inlinable
        public init(accessibility: ImscAccessibilitySubs? = nil, stylePassthrough: ImscStylePassthrough? = nil) {
            self.accessibility = accessibility
            self.stylePassthrough = stylePassthrough
        }

        private enum CodingKeys: String, CodingKey {
            case accessibility = "accessibility"
            case stylePassthrough = "stylePassthrough"
        }
    }

    public struct Input: AWSEncodableShape & AWSDecodableShape {
        /// Use to remove noise, blocking, blurriness, or ringing from your input as a pre-filter step before encoding. The Advanced input filter removes more types of compression artifacts and is an improvement when compared to basic Deblock and Denoise filters. To remove video compression artifacts from your input and improve the video quality: Choose Enabled. Additionally, this filter can help increase the video quality of your output relative to its bitrate, since noisy inputs are more complex and require more bits to encode. To help restore loss of detail after applying the filter, you can optionally add texture or sharpening as an additional step. Jobs that use this feature incur pro-tier pricing. To not apply advanced input filtering: Choose Disabled. Note that you can still apply basic filtering with Deblock and Denoise.
        public let advancedInputFilter: AdvancedInputFilter?
        /// Optional settings for Advanced input filter when you set Advanced input filter to Enabled.
        public let advancedInputFilterSettings: AdvancedInputFilterSettings?
        /// Use audio selector groups to combine multiple sidecar audio inputs so that you can assign them to a single output audio tab. Note that, if you're working with embedded audio, it's simpler to assign multiple input tracks into a single audio selector rather than use an audio selector group.
        public let audioSelectorGroups: [String: AudioSelectorGroup]?
        /// Use Audio selectors to specify a track or set of tracks from the input that you will use in your outputs. You can use multiple Audio selectors per input.
        public let audioSelectors: [String: AudioSelector]?
        /// Use captions selectors to specify the captions data from your input that you use in your outputs. You can use up to 100 captions selectors per input.
        public let captionSelectors: [String: CaptionSelector]?
        /// Use Cropping selection to specify the video area that the service will include in the output video frame. If you specify a value here, it will override any value that you specify in the output setting Cropping selection.
        public let crop: Rectangle?
        /// Enable Deblock to produce smoother motion in the output. Default is disabled. Only manually controllable for MPEG2 and uncompressed video inputs.
        public let deblockFilter: InputDeblockFilter?
        /// Settings for decrypting any input files that you encrypt before you upload them to Amazon S3. MediaConvert can decrypt files only when you use AWS Key Management Service (KMS) to encrypt the data key that you use to encrypt your content.
        public let decryptionSettings: InputDecryptionSettings?
        /// Enable Denoise to filter noise from the input. Default is disabled. Only applicable to MPEG2, H.264, H.265, and uncompressed video inputs.
        public let denoiseFilter: InputDenoiseFilter?
        /// Use this setting only when your video source has Dolby Vision studio mastering metadata that is carried in a separate XML file. Specify the Amazon S3 location for the metadata XML file. MediaConvert uses this file to provide global and frame-level metadata for Dolby Vision preprocessing. When you specify a file here and your input also has interleaved global and frame level metadata, MediaConvert ignores the interleaved metadata and uses only the the metadata from this external XML file. Note that your IAM service role must grant MediaConvert read permissions to this file. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/iam-role.html.
        public let dolbyVisionMetadataXml: String?
        /// Use Dynamic audio selectors when you do not know the track layout of your source when you submit your job, but want to select multiple audio tracks. When you include an audio track in your output and specify this Dynamic audio selector as the Audio source, MediaConvert creates an output audio track for each dynamically selected track. Note that when you include a Dynamic audio selector for two or more inputs, each input must have the same number of audio tracks and audio channels.
        public let dynamicAudioSelectors: [String: DynamicAudioSelector]?
        /// Specify the source file for your transcoding job. You can use multiple inputs in a single job. The service concatenates these inputs, in the order that you specify them in the job, to create the outputs. For standard inputs, provide the path to your S3, HTTP, or HTTPS source file. For example, s3://amzn-s3-demo-bucket/input.mp4 for an Amazon S3 input or https://example.com/input.mp4 for an HTTPS input. For TAMS inputs, specify the HTTPS endpoint of your TAMS server. For example, https://tams-server.example.com . When you do, also specify Source ID, Timerange, GAP handling, and the Authorization connection ARN under TAMS settings. (Don't include these parameters in the Input file URL.) For IMF inputs, specify your input by providing the path to your CPL. For example, s3://amzn-s3-demo-bucket/vf/cpl.xml . If the CPL is in an incomplete IMP, make sure to use Supplemental IMPsto specify any supplemental IMPs that contain assets referenced by the CPL.
        public let fileInput: String?
        /// Specify whether to apply input filtering to improve the video quality of your input. To apply filtering depending on your input type and quality: Choose Auto. To apply no filtering: Choose Disable. To apply filtering regardless of your input type and quality: Choose Force. When you do, you must also specify a value for Filter strength.
        public let filterEnable: InputFilterEnable?
        /// Specify the strength of the input filter. To apply an automatic amount of filtering based the compression artifacts measured in your input: We recommend that you leave Filter strength blank and set Filter enable to Auto. To manually apply filtering: Enter a value from 1 to 5, where 1 is the least amount of filtering and 5 is the most. The value that you enter applies to the strength of the Deblock or Denoise filters, or to the strength of the Advanced input filter.
        public let filterStrength: Int?
        /// Enable the image inserter feature to include a graphic overlay on your video. Enable or disable this feature for each input individually. This setting is disabled by default.
        public let imageInserter: ImageInserter?
        /// Contains sets of start and end times that together specify a portion of the input to be used in the outputs. If you provide only a start time, the clip will be the entire input from that point to the end. If you provide only an end time, it will be the entire input up to that point. When you specify more than one input clip, the transcoding service creates the job outputs by stringing the clips together in the order you specify them.
        public let inputClippings: [InputClipping]?
        /// When you have a progressive segmented frame (PsF) input, use this setting to flag the input as PsF. MediaConvert doesn't automatically detect PsF. Therefore, flagging your input as PsF results in better preservation of video quality when you do deinterlacing and frame rate conversion. If you don't specify, the default value is Auto. Auto is the correct setting for all inputs that are not PsF. Don't set this value to PsF when your input is interlaced. Doing so creates horizontal interlacing artifacts.
        public let inputScanType: InputScanType?
        /// Use Selection placement to define the video area in your output frame. The area outside of the rectangle that you specify here is black. If you specify a value here, it will override any value that you specify in the output setting Selection placement. If you specify a value here, this will override any AFD values in your input, even if you set Respond to AFD to Respond. If you specify a value here, this will ignore anything that you specify for the setting Scaling Behavior.
        public let position: Rectangle?
        /// Use Program to select a specific program from within a multi-program transport stream. Note that Quad 4K is not currently supported. Default is the first program within the transport stream. If the program you specify doesn't exist, the transcoding service will use this default.
        public let programNumber: Int?
        /// Set PSI control for transport stream inputs to specify which data the demux process to scans.
        /// * Ignore PSI - Scan all PIDs for audio and video.
        /// * Use PSI - Scan only PSI data.
        public let psiControl: InputPsiControl?
        /// Provide a list of any necessary supplemental IMPs. You need supplemental IMPs if the CPL that you're using for your input is in an incomplete IMP. Specify either the supplemental IMP directories with a trailing slash or the ASSETMAP.xml files. For example ["s3://bucket/ov/", "s3://bucket/vf2/ASSETMAP.xml"]. You don't need to specify the IMP that contains your input CPL, because the service automatically detects it.
        public let supplementalImps: [String]?
        /// Specify a Time Addressable Media Store (TAMS) server as an input source. TAMS is an open-source API specification that provides access to time-segmented media content. Use TAMS to retrieve specific time ranges from live or archived media streams. When you specify TAMS settings, MediaConvert connects to your TAMS server, retrieves the media segments for your specified time range, and processes them as a single input. This enables workflows like extracting clips from live streams or processing specific portions of archived content. To use TAMS, you must: 1. Have access to a TAMS-compliant server 2. Specify the server URL in the Input file URL field 3. Provide the required SourceId and Timerange parameters 4. Configure authentication, if your TAMS server requires it
        public let tamsSettings: InputTamsSettings?
        /// Use this Timecode source setting, located under the input settings, to specify how the service counts input video frames. This input frame count affects only the behavior of features that apply to a single input at a time, such as input clipping and synchronizing some captions formats. Choose Embedded to use the timecodes in your input video. Choose Start at zero to start the first frame at zero. Choose Specified start to start the first frame at the timecode that you specify in the setting Start timecode. If you don't specify a value for Timecode source, the service will use Embedded by default. For more information about timecodes, see https://docs.aws.amazon.com/console/mediaconvert/timecode.
        public let timecodeSource: InputTimecodeSource?
        /// Specify the timecode that you want the service to use for this input's initial frame. To use this setting, you must set the Timecode source setting, located under the input settings, to Specified start. For more information about timecodes, see https://docs.aws.amazon.com/console/mediaconvert/timecode.
        public let timecodeStart: String?
        /// When you include Video generator, MediaConvert creates a video input with black frames. Use this setting if you do not have a video input or if you want to add black video frames before, or after, other inputs. You can specify Video generator, or you can specify an Input file, but you cannot specify both. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/video-generator.html
        public let videoGenerator: InputVideoGenerator?
        /// Contains an array of video overlays.
        public let videoOverlays: [VideoOverlay]?
        /// Input video selectors contain the video settings for the input. Each of your inputs can have up to one video selector.
        public let videoSelector: VideoSelector?

        @inlinable
        public init(advancedInputFilter: AdvancedInputFilter? = nil, advancedInputFilterSettings: AdvancedInputFilterSettings? = nil, audioSelectorGroups: [String: AudioSelectorGroup]? = nil, audioSelectors: [String: AudioSelector]? = nil, captionSelectors: [String: CaptionSelector]? = nil, crop: Rectangle? = nil, deblockFilter: InputDeblockFilter? = nil, decryptionSettings: InputDecryptionSettings? = nil, denoiseFilter: InputDenoiseFilter? = nil, dolbyVisionMetadataXml: String? = nil, dynamicAudioSelectors: [String: DynamicAudioSelector]? = nil, fileInput: String? = nil, filterEnable: InputFilterEnable? = nil, filterStrength: Int? = nil, imageInserter: ImageInserter? = nil, inputClippings: [InputClipping]? = nil, inputScanType: InputScanType? = nil, position: Rectangle? = nil, programNumber: Int? = nil, psiControl: InputPsiControl? = nil, supplementalImps: [String]? = nil, tamsSettings: InputTamsSettings? = nil, timecodeSource: InputTimecodeSource? = nil, timecodeStart: String? = nil, videoGenerator: InputVideoGenerator? = nil, videoOverlays: [VideoOverlay]? = nil, videoSelector: VideoSelector? = nil) {
            self.advancedInputFilter = advancedInputFilter
            self.advancedInputFilterSettings = advancedInputFilterSettings
            self.audioSelectorGroups = audioSelectorGroups
            self.audioSelectors = audioSelectors
            self.captionSelectors = captionSelectors
            self.crop = crop
            self.deblockFilter = deblockFilter
            self.decryptionSettings = decryptionSettings
            self.denoiseFilter = denoiseFilter
            self.dolbyVisionMetadataXml = dolbyVisionMetadataXml
            self.dynamicAudioSelectors = dynamicAudioSelectors
            self.fileInput = fileInput
            self.filterEnable = filterEnable
            self.filterStrength = filterStrength
            self.imageInserter = imageInserter
            self.inputClippings = inputClippings
            self.inputScanType = inputScanType
            self.position = position
            self.programNumber = programNumber
            self.psiControl = psiControl
            self.supplementalImps = supplementalImps
            self.tamsSettings = tamsSettings
            self.timecodeSource = timecodeSource
            self.timecodeStart = timecodeStart
            self.videoGenerator = videoGenerator
            self.videoOverlays = videoOverlays
            self.videoSelector = videoSelector
        }

        public func validate(name: String) throws {
            try self.audioSelectorGroups?.forEach {
                try $0.value.validate(name: "\(name).audioSelectorGroups[\"\($0.key)\"]")
            }
            try self.audioSelectors?.forEach {
                try $0.value.validate(name: "\(name).audioSelectors[\"\($0.key)\"]")
            }
            try self.captionSelectors?.forEach {
                try $0.value.validate(name: "\(name).captionSelectors[\"\($0.key)\"]")
            }
            try self.crop?.validate(name: "\(name).crop")
            try self.decryptionSettings?.validate(name: "\(name).decryptionSettings")
            try self.validate(self.dolbyVisionMetadataXml, name: "dolbyVisionMetadataXml", parent: name, min: 14)
            try self.validate(self.dolbyVisionMetadataXml, name: "dolbyVisionMetadataXml", parent: name, pattern: "^((s3://(.*?)\\.(xml|XML))|(https?://(.*?)\\.(xml|XML)(\\?([^&=]+=[^&]+&)*[^&=]+=[^&]+)?))$")
            try self.dynamicAudioSelectors?.forEach {
                try $0.value.validate(name: "\(name).dynamicAudioSelectors[\"\($0.key)\"]")
            }
            try self.validate(self.fileInput, name: "fileInput", parent: name, max: 2048)
            try self.validate(self.fileInput, name: "fileInput", parent: name, pattern: "^s3://([^\\/]+\\/+)+((([^\\/]*)))|^https?://[^\\/].*[^&]$")
            try self.validate(self.filterStrength, name: "filterStrength", parent: name, max: 5)
            try self.validate(self.filterStrength, name: "filterStrength", parent: name, min: 0)
            try self.imageInserter?.validate(name: "\(name).imageInserter")
            try self.inputClippings?.forEach {
                try $0.validate(name: "\(name).inputClippings[]")
            }
            try self.position?.validate(name: "\(name).position")
            try self.validate(self.programNumber, name: "programNumber", parent: name, max: 2147483647)
            try self.validate(self.programNumber, name: "programNumber", parent: name, min: 1)
            try self.supplementalImps?.forEach {
                try validate($0, name: "supplementalImps[]", parent: name, pattern: "^s3:\\/\\/.*\\/(ASSETMAP.xml)?$")
            }
            try self.tamsSettings?.validate(name: "\(name).tamsSettings")
            try self.validate(self.timecodeStart, name: "timecodeStart", parent: name, max: 11)
            try self.validate(self.timecodeStart, name: "timecodeStart", parent: name, min: 11)
            try self.validate(self.timecodeStart, name: "timecodeStart", parent: name, pattern: "^((([0-1]\\d)|(2[0-3]))(:[0-5]\\d){2}([:;][0-5]\\d))$")
            try self.videoGenerator?.validate(name: "\(name).videoGenerator")
            try self.videoOverlays?.forEach {
                try $0.validate(name: "\(name).videoOverlays[]")
            }
            try self.videoSelector?.validate(name: "\(name).videoSelector")
        }

        private enum CodingKeys: String, CodingKey {
            case advancedInputFilter = "advancedInputFilter"
            case advancedInputFilterSettings = "advancedInputFilterSettings"
            case audioSelectorGroups = "audioSelectorGroups"
            case audioSelectors = "audioSelectors"
            case captionSelectors = "captionSelectors"
            case crop = "crop"
            case deblockFilter = "deblockFilter"
            case decryptionSettings = "decryptionSettings"
            case denoiseFilter = "denoiseFilter"
            case dolbyVisionMetadataXml = "dolbyVisionMetadataXml"
            case dynamicAudioSelectors = "dynamicAudioSelectors"
            case fileInput = "fileInput"
            case filterEnable = "filterEnable"
            case filterStrength = "filterStrength"
            case imageInserter = "imageInserter"
            case inputClippings = "inputClippings"
            case inputScanType = "inputScanType"
            case position = "position"
            case programNumber = "programNumber"
            case psiControl = "psiControl"
            case supplementalImps = "supplementalImps"
            case tamsSettings = "tamsSettings"
            case timecodeSource = "timecodeSource"
            case timecodeStart = "timecodeStart"
            case videoGenerator = "videoGenerator"
            case videoOverlays = "videoOverlays"
            case videoSelector = "videoSelector"
        }
    }

    public struct InputClipping: AWSEncodableShape & AWSDecodableShape {
        /// Set End timecode to the end of the portion of the input you are clipping. The frame corresponding to the End timecode value is included in the clip. Start timecode or End timecode may be left blank, but not both. Use the format HH:MM:SS:FF or HH:MM:SS;FF, where HH is the hour, MM is the minute, SS is the second, and FF is the frame number. When choosing this value, take into account your setting for timecode source under input settings. For example, if you have embedded timecodes that start at 01:00:00:00 and you want your clip to end six minutes into the video, use 01:06:00:00.
        public let endTimecode: String?
        /// Set Start timecode to the beginning of the portion of the input you are clipping. The frame corresponding to the Start timecode value is included in the clip. Start timecode or End timecode may be left blank, but not both. Use the format HH:MM:SS:FF or HH:MM:SS;FF, where HH is the hour, MM is the minute, SS is the second, and FF is the frame number. When choosing this value, take into account your setting for Input timecode source. For example, if you have embedded timecodes that start at 01:00:00:00 and you want your clip to begin five minutes into the video, use 01:05:00:00.
        public let startTimecode: String?

        @inlinable
        public init(endTimecode: String? = nil, startTimecode: String? = nil) {
            self.endTimecode = endTimecode
            self.startTimecode = startTimecode
        }

        public func validate(name: String) throws {
            try self.validate(self.endTimecode, name: "endTimecode", parent: name, pattern: "^([01][0-9]|2[0-4]):[0-5][0-9]:[0-5][0-9][:;][0-9]{2}(@[0-9]+(\\.[0-9]+)?(:[0-9]+)?)?$")
            try self.validate(self.startTimecode, name: "startTimecode", parent: name, pattern: "^([01][0-9]|2[0-4]):[0-5][0-9]:[0-5][0-9][:;][0-9]{2}(@[0-9]+(\\.[0-9]+)?(:[0-9]+)?)?$")
        }

        private enum CodingKeys: String, CodingKey {
            case endTimecode = "endTimecode"
            case startTimecode = "startTimecode"
        }
    }

    public struct InputDecryptionSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify the encryption mode that you used to encrypt your input files.
        public let decryptionMode: DecryptionMode?
        /// Warning! Don't provide your encryption key in plaintext. Your job settings could be intercepted, making your encrypted content vulnerable. Specify the encrypted version of the data key that you used to encrypt your content. The data key must be encrypted by AWS Key Management Service (KMS). The key can be 128, 192, or 256 bits.
        public let encryptedDecryptionKey: String?
        /// Specify the initialization vector that you used when you encrypted your content before uploading it to Amazon S3. You can use a 16-byte initialization vector with any encryption mode. Or, you can use a 12-byte initialization vector with GCM or CTR. MediaConvert accepts only initialization vectors that are base64-encoded.
        public let initializationVector: String?
        /// Specify the AWS Region for AWS Key Management Service (KMS) that you used to encrypt your data key, if that Region is different from the one you are using for AWS Elemental MediaConvert.
        public let kmsKeyRegion: String?

        @inlinable
        public init(decryptionMode: DecryptionMode? = nil, encryptedDecryptionKey: String? = nil, initializationVector: String? = nil, kmsKeyRegion: String? = nil) {
            self.decryptionMode = decryptionMode
            self.encryptedDecryptionKey = encryptedDecryptionKey
            self.initializationVector = initializationVector
            self.kmsKeyRegion = kmsKeyRegion
        }

        public func validate(name: String) throws {
            try self.validate(self.encryptedDecryptionKey, name: "encryptedDecryptionKey", parent: name, max: 512)
            try self.validate(self.encryptedDecryptionKey, name: "encryptedDecryptionKey", parent: name, min: 24)
            try self.validate(self.encryptedDecryptionKey, name: "encryptedDecryptionKey", parent: name, pattern: "^[A-Za-z0-9+\\/]+={0,2}$")
            try self.validate(self.initializationVector, name: "initializationVector", parent: name, max: 24)
            try self.validate(self.initializationVector, name: "initializationVector", parent: name, min: 16)
            try self.validate(self.initializationVector, name: "initializationVector", parent: name, pattern: "^[A-Za-z0-9+\\/]{22}==$|^[A-Za-z0-9+\\/]{16}$")
            try self.validate(self.kmsKeyRegion, name: "kmsKeyRegion", parent: name, max: 19)
            try self.validate(self.kmsKeyRegion, name: "kmsKeyRegion", parent: name, min: 9)
            try self.validate(self.kmsKeyRegion, name: "kmsKeyRegion", parent: name, pattern: "^[a-z-]{2,6}-(east|west|central|((north|south)(east|west)?))-[1-9]{1,2}$")
        }

        private enum CodingKeys: String, CodingKey {
            case decryptionMode = "decryptionMode"
            case encryptedDecryptionKey = "encryptedDecryptionKey"
            case initializationVector = "initializationVector"
            case kmsKeyRegion = "kmsKeyRegion"
        }
    }

    public struct InputTamsSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify the ARN (Amazon Resource Name) of an EventBridge Connection to authenticate with your TAMS server. The EventBridge Connection stores your authentication credentials securely. MediaConvert assumes your job's IAM role to access this connection, so ensure the role has the events:RetrieveConnectionCredentials, secretsmanager:DescribeSecret, and secretsmanager:GetSecretValue permissions. Format: arn:aws:events:region:account-id:connection/connection-name/unique-id
        public let authConnectionArn: String?
        /// Specify how MediaConvert handles gaps between media segments in your TAMS source. Gaps can occur in live streams due to network issues or other interruptions. Choose from the following options: * Skip gaps - Default. Skip over gaps and join segments together. This creates a continuous output with no blank frames, but may cause timeline discontinuities. * Fill with black - Insert black frames to fill gaps between segments. This maintains timeline continuity but adds black frames where content is missing. * Hold last frame - Repeat the last frame before a gap until the next segment begins. This maintains visual continuity during gaps.
        public let gapHandling: TamsGapHandling?
        /// Specify the unique identifier for the media source in your TAMS server. MediaConvert uses this source ID to locate the appropriate flows containing the media segments you want to process. The source ID corresponds to a specific media source registered in your TAMS server. This source must be of type urn:x-nmos:format:multi, and can can reference multiple flows for audio, video, or combined audio/video content. MediaConvert automatically selects the highest quality flows available for your job. This setting is required when include TAMS settings in your job.
        public let sourceId: String?
        /// Specify the time range of media segments to retrieve from your TAMS server. MediaConvert fetches only the segments that fall within this range. Use the format specified by your TAMS server implementation. This must be two timestamp values with the format {sign?}{seconds}:{nanoseconds}, separated by an underscore, surrounded by either parentheses or square brackets.  Example: [15:0_35:0) This setting is required when include TAMS settings in your job.
        public let timerange: String?

        @inlinable
        public init(authConnectionArn: String? = nil, gapHandling: TamsGapHandling? = nil, sourceId: String? = nil, timerange: String? = nil) {
            self.authConnectionArn = authConnectionArn
            self.gapHandling = gapHandling
            self.sourceId = sourceId
            self.timerange = timerange
        }

        public func validate(name: String) throws {
            try self.validate(self.authConnectionArn, name: "authConnectionArn", parent: name, pattern: "^arn:aws[a-z0-9-]*:events:[a-z0-9-]+:[0-9]{12}:connection/[a-zA-Z0-9-]+/[a-f0-9-]{36}$")
            try self.validate(self.timerange, name: "timerange", parent: name, pattern: "^(\\[|\\()?(-?(0|[1-9][0-9]*):(0|[1-9][0-9]{0,8}))?(_(-?(0|[1-9][0-9]*):(0|[1-9][0-9]{0,8}))?)?(\\]|\\))?$")
        }

        private enum CodingKeys: String, CodingKey {
            case authConnectionArn = "authConnectionArn"
            case gapHandling = "gapHandling"
            case sourceId = "sourceId"
            case timerange = "timerange"
        }
    }

    public struct InputTemplate: AWSEncodableShape & AWSDecodableShape {
        /// Use to remove noise, blocking, blurriness, or ringing from your input as a pre-filter step before encoding. The Advanced input filter removes more types of compression artifacts and is an improvement when compared to basic Deblock and Denoise filters. To remove video compression artifacts from your input and improve the video quality: Choose Enabled. Additionally, this filter can help increase the video quality of your output relative to its bitrate, since noisy inputs are more complex and require more bits to encode. To help restore loss of detail after applying the filter, you can optionally add texture or sharpening as an additional step. Jobs that use this feature incur pro-tier pricing. To not apply advanced input filtering: Choose Disabled. Note that you can still apply basic filtering with Deblock and Denoise.
        public let advancedInputFilter: AdvancedInputFilter?
        /// Optional settings for Advanced input filter when you set Advanced input filter to Enabled.
        public let advancedInputFilterSettings: AdvancedInputFilterSettings?
        /// Use audio selector groups to combine multiple sidecar audio inputs so that you can assign them to a single output audio tab. Note that, if you're working with embedded audio, it's simpler to assign multiple input tracks into a single audio selector rather than use an audio selector group.
        public let audioSelectorGroups: [String: AudioSelectorGroup]?
        /// Use Audio selectors to specify a track or set of tracks from the input that you will use in your outputs. You can use multiple Audio selectors per input.
        public let audioSelectors: [String: AudioSelector]?
        /// Use captions selectors to specify the captions data from your input that you use in your outputs. You can use up to 100 captions selectors per input.
        public let captionSelectors: [String: CaptionSelector]?
        /// Use Cropping selection to specify the video area that the service will include in the output video frame. If you specify a value here, it will override any value that you specify in the output setting Cropping selection.
        public let crop: Rectangle?
        /// Enable Deblock to produce smoother motion in the output. Default is disabled. Only manually controllable for MPEG2 and uncompressed video inputs.
        public let deblockFilter: InputDeblockFilter?
        /// Enable Denoise to filter noise from the input. Default is disabled. Only applicable to MPEG2, H.264, H.265, and uncompressed video inputs.
        public let denoiseFilter: InputDenoiseFilter?
        /// Use this setting only when your video source has Dolby Vision studio mastering metadata that is carried in a separate XML file. Specify the Amazon S3 location for the metadata XML file. MediaConvert uses this file to provide global and frame-level metadata for Dolby Vision preprocessing. When you specify a file here and your input also has interleaved global and frame level metadata, MediaConvert ignores the interleaved metadata and uses only the the metadata from this external XML file. Note that your IAM service role must grant MediaConvert read permissions to this file. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/iam-role.html.
        public let dolbyVisionMetadataXml: String?
        /// Use Dynamic audio selectors when you do not know the track layout of your source when you submit your job, but want to select multiple audio tracks. When you include an audio track in your output and specify this Dynamic audio selector as the Audio source, MediaConvert creates an output audio track for each dynamically selected track. Note that when you include a Dynamic audio selector for two or more inputs, each input must have the same number of audio tracks and audio channels.
        public let dynamicAudioSelectors: [String: DynamicAudioSelector]?
        /// Specify whether to apply input filtering to improve the video quality of your input. To apply filtering depending on your input type and quality: Choose Auto. To apply no filtering: Choose Disable. To apply filtering regardless of your input type and quality: Choose Force. When you do, you must also specify a value for Filter strength.
        public let filterEnable: InputFilterEnable?
        /// Specify the strength of the input filter. To apply an automatic amount of filtering based the compression artifacts measured in your input: We recommend that you leave Filter strength blank and set Filter enable to Auto. To manually apply filtering: Enter a value from 1 to 5, where 1 is the least amount of filtering and 5 is the most. The value that you enter applies to the strength of the Deblock or Denoise filters, or to the strength of the Advanced input filter.
        public let filterStrength: Int?
        /// Enable the image inserter feature to include a graphic overlay on your video. Enable or disable this feature for each input individually. This setting is disabled by default.
        public let imageInserter: ImageInserter?
        /// Contains sets of start and end times that together specify a portion of the input to be used in the outputs. If you provide only a start time, the clip will be the entire input from that point to the end. If you provide only an end time, it will be the entire input up to that point. When you specify more than one input clip, the transcoding service creates the job outputs by stringing the clips together in the order you specify them.
        public let inputClippings: [InputClipping]?
        /// When you have a progressive segmented frame (PsF) input, use this setting to flag the input as PsF. MediaConvert doesn't automatically detect PsF. Therefore, flagging your input as PsF results in better preservation of video quality when you do deinterlacing and frame rate conversion. If you don't specify, the default value is Auto. Auto is the correct setting for all inputs that are not PsF. Don't set this value to PsF when your input is interlaced. Doing so creates horizontal interlacing artifacts.
        public let inputScanType: InputScanType?
        /// Use Selection placement to define the video area in your output frame. The area outside of the rectangle that you specify here is black. If you specify a value here, it will override any value that you specify in the output setting Selection placement. If you specify a value here, this will override any AFD values in your input, even if you set Respond to AFD to Respond. If you specify a value here, this will ignore anything that you specify for the setting Scaling Behavior.
        public let position: Rectangle?
        /// Use Program to select a specific program from within a multi-program transport stream. Note that Quad 4K is not currently supported. Default is the first program within the transport stream. If the program you specify doesn't exist, the transcoding service will use this default.
        public let programNumber: Int?
        /// Set PSI control for transport stream inputs to specify which data the demux process to scans.
        /// * Ignore PSI - Scan all PIDs for audio and video.
        /// * Use PSI - Scan only PSI data.
        public let psiControl: InputPsiControl?
        /// Use this Timecode source setting, located under the input settings, to specify how the service counts input video frames. This input frame count affects only the behavior of features that apply to a single input at a time, such as input clipping and synchronizing some captions formats. Choose Embedded to use the timecodes in your input video. Choose Start at zero to start the first frame at zero. Choose Specified start to start the first frame at the timecode that you specify in the setting Start timecode. If you don't specify a value for Timecode source, the service will use Embedded by default. For more information about timecodes, see https://docs.aws.amazon.com/console/mediaconvert/timecode.
        public let timecodeSource: InputTimecodeSource?
        /// Specify the timecode that you want the service to use for this input's initial frame. To use this setting, you must set the Timecode source setting, located under the input settings, to Specified start. For more information about timecodes, see https://docs.aws.amazon.com/console/mediaconvert/timecode.
        public let timecodeStart: String?
        /// Contains an array of video overlays.
        public let videoOverlays: [VideoOverlay]?
        /// Input video selectors contain the video settings for the input. Each of your inputs can have up to one video selector.
        public let videoSelector: VideoSelector?

        @inlinable
        public init(advancedInputFilter: AdvancedInputFilter? = nil, advancedInputFilterSettings: AdvancedInputFilterSettings? = nil, audioSelectorGroups: [String: AudioSelectorGroup]? = nil, audioSelectors: [String: AudioSelector]? = nil, captionSelectors: [String: CaptionSelector]? = nil, crop: Rectangle? = nil, deblockFilter: InputDeblockFilter? = nil, denoiseFilter: InputDenoiseFilter? = nil, dolbyVisionMetadataXml: String? = nil, dynamicAudioSelectors: [String: DynamicAudioSelector]? = nil, filterEnable: InputFilterEnable? = nil, filterStrength: Int? = nil, imageInserter: ImageInserter? = nil, inputClippings: [InputClipping]? = nil, inputScanType: InputScanType? = nil, position: Rectangle? = nil, programNumber: Int? = nil, psiControl: InputPsiControl? = nil, timecodeSource: InputTimecodeSource? = nil, timecodeStart: String? = nil, videoOverlays: [VideoOverlay]? = nil, videoSelector: VideoSelector? = nil) {
            self.advancedInputFilter = advancedInputFilter
            self.advancedInputFilterSettings = advancedInputFilterSettings
            self.audioSelectorGroups = audioSelectorGroups
            self.audioSelectors = audioSelectors
            self.captionSelectors = captionSelectors
            self.crop = crop
            self.deblockFilter = deblockFilter
            self.denoiseFilter = denoiseFilter
            self.dolbyVisionMetadataXml = dolbyVisionMetadataXml
            self.dynamicAudioSelectors = dynamicAudioSelectors
            self.filterEnable = filterEnable
            self.filterStrength = filterStrength
            self.imageInserter = imageInserter
            self.inputClippings = inputClippings
            self.inputScanType = inputScanType
            self.position = position
            self.programNumber = programNumber
            self.psiControl = psiControl
            self.timecodeSource = timecodeSource
            self.timecodeStart = timecodeStart
            self.videoOverlays = videoOverlays
            self.videoSelector = videoSelector
        }

        public func validate(name: String) throws {
            try self.audioSelectorGroups?.forEach {
                try $0.value.validate(name: "\(name).audioSelectorGroups[\"\($0.key)\"]")
            }
            try self.audioSelectors?.forEach {
                try $0.value.validate(name: "\(name).audioSelectors[\"\($0.key)\"]")
            }
            try self.captionSelectors?.forEach {
                try $0.value.validate(name: "\(name).captionSelectors[\"\($0.key)\"]")
            }
            try self.crop?.validate(name: "\(name).crop")
            try self.validate(self.dolbyVisionMetadataXml, name: "dolbyVisionMetadataXml", parent: name, min: 14)
            try self.validate(self.dolbyVisionMetadataXml, name: "dolbyVisionMetadataXml", parent: name, pattern: "^((s3://(.*?)\\.(xml|XML))|(https?://(.*?)\\.(xml|XML)(\\?([^&=]+=[^&]+&)*[^&=]+=[^&]+)?))$")
            try self.dynamicAudioSelectors?.forEach {
                try $0.value.validate(name: "\(name).dynamicAudioSelectors[\"\($0.key)\"]")
            }
            try self.validate(self.filterStrength, name: "filterStrength", parent: name, max: 5)
            try self.validate(self.filterStrength, name: "filterStrength", parent: name, min: 0)
            try self.imageInserter?.validate(name: "\(name).imageInserter")
            try self.inputClippings?.forEach {
                try $0.validate(name: "\(name).inputClippings[]")
            }
            try self.position?.validate(name: "\(name).position")
            try self.validate(self.programNumber, name: "programNumber", parent: name, max: 2147483647)
            try self.validate(self.programNumber, name: "programNumber", parent: name, min: 1)
            try self.validate(self.timecodeStart, name: "timecodeStart", parent: name, max: 11)
            try self.validate(self.timecodeStart, name: "timecodeStart", parent: name, min: 11)
            try self.validate(self.timecodeStart, name: "timecodeStart", parent: name, pattern: "^((([0-1]\\d)|(2[0-3]))(:[0-5]\\d){2}([:;][0-5]\\d))$")
            try self.videoOverlays?.forEach {
                try $0.validate(name: "\(name).videoOverlays[]")
            }
            try self.videoSelector?.validate(name: "\(name).videoSelector")
        }

        private enum CodingKeys: String, CodingKey {
            case advancedInputFilter = "advancedInputFilter"
            case advancedInputFilterSettings = "advancedInputFilterSettings"
            case audioSelectorGroups = "audioSelectorGroups"
            case audioSelectors = "audioSelectors"
            case captionSelectors = "captionSelectors"
            case crop = "crop"
            case deblockFilter = "deblockFilter"
            case denoiseFilter = "denoiseFilter"
            case dolbyVisionMetadataXml = "dolbyVisionMetadataXml"
            case dynamicAudioSelectors = "dynamicAudioSelectors"
            case filterEnable = "filterEnable"
            case filterStrength = "filterStrength"
            case imageInserter = "imageInserter"
            case inputClippings = "inputClippings"
            case inputScanType = "inputScanType"
            case position = "position"
            case programNumber = "programNumber"
            case psiControl = "psiControl"
            case timecodeSource = "timecodeSource"
            case timecodeStart = "timecodeStart"
            case videoOverlays = "videoOverlays"
            case videoSelector = "videoSelector"
        }
    }

    public struct InputVideoGenerator: AWSEncodableShape & AWSDecodableShape {
        /// Specify the number of audio channels to include in your video generator input. MediaConvert creates these audio channels as silent audio within a single audio track. Enter an integer from 1 to 32.
        public let channels: Int?
        /// Specify the duration, in milliseconds, for your video generator input.
        /// Enter an integer from 50 to 86400000.
        public let duration: Int?
        /// Specify the denominator of the fraction that represents the frame rate for your video generator input. When you do, you must also specify a value for Frame rate numerator. MediaConvert uses a default frame rate of 29.97 when you leave Frame rate numerator and Frame rate denominator blank.
        public let framerateDenominator: Int?
        /// Specify the numerator of the fraction that represents the frame rate for your video generator input. When you do, you must also specify a value for Frame rate denominator. MediaConvert uses a default frame rate of 29.97 when you leave Frame rate numerator and Frame rate denominator blank.
        public let framerateNumerator: Int?
        /// Specify the audio sample rate, in Hz, for the silent audio in your video generator input.
        /// Enter an integer from 32000 to 48000.
        public let sampleRate: Int?

        @inlinable
        public init(channels: Int? = nil, duration: Int? = nil, framerateDenominator: Int? = nil, framerateNumerator: Int? = nil, sampleRate: Int? = nil) {
            self.channels = channels
            self.duration = duration
            self.framerateDenominator = framerateDenominator
            self.framerateNumerator = framerateNumerator
            self.sampleRate = sampleRate
        }

        public func validate(name: String) throws {
            try self.validate(self.channels, name: "channels", parent: name, max: 32)
            try self.validate(self.channels, name: "channels", parent: name, min: 1)
            try self.validate(self.duration, name: "duration", parent: name, max: 86400000)
            try self.validate(self.duration, name: "duration", parent: name, min: 50)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, max: 1001)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, min: 1)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, max: 60000)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, min: 1)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, max: 48000)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, min: 32000)
        }

        private enum CodingKeys: String, CodingKey {
            case channels = "channels"
            case duration = "duration"
            case framerateDenominator = "framerateDenominator"
            case framerateNumerator = "framerateNumerator"
            case sampleRate = "sampleRate"
        }
    }

    public struct InsertableImage: AWSEncodableShape & AWSDecodableShape {
        /// Specify the time, in milliseconds, for the image to remain on the output video. This duration includes fade-in time but not fade-out time.
        public let duration: Int?
        /// Specify the length of time, in milliseconds, between the Start time that you specify for the image insertion and the time that the image appears at full opacity. Full opacity is the level that you specify for the opacity setting. If you don't specify a value for Fade-in, the image will appear abruptly at the overlay start time.
        public let fadeIn: Int?
        /// Specify the length of time, in milliseconds, between the end of the time that you have specified for the image overlay Duration and when the overlaid image has faded to total transparency. If you don't specify a value for Fade-out, the image will disappear abruptly at the end of the inserted image duration.
        public let fadeOut: Int?
        /// Specify the height of the inserted image in pixels. If you specify a value that's larger than the video resolution height, the service will crop your overlaid image to fit. To use the native height of the image, keep this setting blank.
        public let height: Int?
        /// Specify the HTTP, HTTPS, or Amazon S3 location of the image that you want to overlay on the video. Use a PNG or TGA file.
        public let imageInserterInput: String?
        /// Specify the distance, in pixels, between the inserted image and the left edge of the video frame. Required for any image overlay that you specify.
        public let imageX: Int?
        /// Specify the distance, in pixels, between the overlaid image and the top edge of the video frame. Required for any image overlay that you specify.
        public let imageY: Int?
        /// Specify how overlapping inserted images appear. Images with higher values for Layer appear on top of images with lower values for Layer.
        public let layer: Int?
        /// Use Opacity to specify how much of the underlying video shows through the inserted image. 0 is transparent and 100 is fully opaque. Default is 50.
        public let opacity: Int?
        /// Specify the timecode of the frame that you want the overlay to first appear on. This must be in timecode (HH:MM:SS:FF or HH:MM:SS;FF) format. Remember to take into account your timecode source settings.
        public let startTime: String?
        /// Specify the width of the inserted image in pixels. If you specify a value that's larger than the video resolution width, the service will crop your overlaid image to fit. To use the native width of the image, keep this setting blank.
        public let width: Int?

        @inlinable
        public init(duration: Int? = nil, fadeIn: Int? = nil, fadeOut: Int? = nil, height: Int? = nil, imageInserterInput: String? = nil, imageX: Int? = nil, imageY: Int? = nil, layer: Int? = nil, opacity: Int? = nil, startTime: String? = nil, width: Int? = nil) {
            self.duration = duration
            self.fadeIn = fadeIn
            self.fadeOut = fadeOut
            self.height = height
            self.imageInserterInput = imageInserterInput
            self.imageX = imageX
            self.imageY = imageY
            self.layer = layer
            self.opacity = opacity
            self.startTime = startTime
            self.width = width
        }

        public func validate(name: String) throws {
            try self.validate(self.duration, name: "duration", parent: name, max: 2147483647)
            try self.validate(self.duration, name: "duration", parent: name, min: 0)
            try self.validate(self.fadeIn, name: "fadeIn", parent: name, max: 2147483647)
            try self.validate(self.fadeIn, name: "fadeIn", parent: name, min: 0)
            try self.validate(self.fadeOut, name: "fadeOut", parent: name, max: 2147483647)
            try self.validate(self.fadeOut, name: "fadeOut", parent: name, min: 0)
            try self.validate(self.height, name: "height", parent: name, max: 2147483647)
            try self.validate(self.height, name: "height", parent: name, min: 0)
            try self.validate(self.imageInserterInput, name: "imageInserterInput", parent: name, min: 14)
            try self.validate(self.imageInserterInput, name: "imageInserterInput", parent: name, pattern: "^((s3://(.*?)\\.(bmp|BMP|png|PNG|tga|TGA))|(https?://(.*?)\\.(bmp|BMP|png|PNG|tga|TGA)(\\?([^&=]+=[^&]+&)*[^&=]+=[^&]+)?))$")
            try self.validate(self.imageX, name: "imageX", parent: name, max: 2147483647)
            try self.validate(self.imageX, name: "imageX", parent: name, min: 0)
            try self.validate(self.imageY, name: "imageY", parent: name, max: 2147483647)
            try self.validate(self.imageY, name: "imageY", parent: name, min: 0)
            try self.validate(self.layer, name: "layer", parent: name, max: 99)
            try self.validate(self.layer, name: "layer", parent: name, min: 0)
            try self.validate(self.opacity, name: "opacity", parent: name, max: 100)
            try self.validate(self.opacity, name: "opacity", parent: name, min: 0)
            try self.validate(self.startTime, name: "startTime", parent: name, pattern: "^((([0-1]\\d)|(2[0-3]))(:[0-5]\\d){2}([:;][0-5]\\d))$")
            try self.validate(self.width, name: "width", parent: name, max: 2147483647)
            try self.validate(self.width, name: "width", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case duration = "duration"
            case fadeIn = "fadeIn"
            case fadeOut = "fadeOut"
            case height = "height"
            case imageInserterInput = "imageInserterInput"
            case imageX = "imageX"
            case imageY = "imageY"
            case layer = "layer"
            case opacity = "opacity"
            case startTime = "startTime"
            case width = "width"
        }
    }

    public struct Job: AWSDecodableShape {
        /// Accelerated transcoding can significantly speed up jobs with long, visually complex content.
        public let accelerationSettings: AccelerationSettings?
        /// Describes whether the current job is running with accelerated transcoding. For jobs that have Acceleration (AccelerationMode) set to DISABLED, AccelerationStatus is always NOT_APPLICABLE. For jobs that have Acceleration (AccelerationMode) set to ENABLED or PREFERRED, AccelerationStatus is one of the other states. AccelerationStatus is IN_PROGRESS initially, while the service determines whether the input files and job settings are compatible with accelerated transcoding. If they are, AcclerationStatus is ACCELERATED. If your input files and job settings aren't compatible with accelerated transcoding, the service either fails your job or runs it without accelerated transcoding, depending on how you set Acceleration (AccelerationMode). When the service runs your job without accelerated transcoding, AccelerationStatus is NOT_ACCELERATED.
        public let accelerationStatus: AccelerationStatus?
        /// An identifier for this resource that is unique within all of AWS.
        public let arn: String?
        /// The tag type that AWS Billing and Cost Management will use to sort your AWS Elemental MediaConvert costs on any billing report that you set up.
        public let billingTagsSource: BillingTagsSource?
        /// Prevent duplicate jobs from being created and ensure idempotency for your requests. A client request token can be any string that includes up to 64 ASCII characters. If you reuse a client request token within one minute of a successful request, the API returns the job details of the original request instead. For more information see https://docs.aws.amazon.com/mediaconvert/latest/apireference/idempotency.html.
        public let clientRequestToken: String?
        /// The time, in Unix epoch format in seconds, when the job got created.
        @OptionalCustomCoding<UnixEpochDateCoder>
        public var createdAt: Date?
        /// A job's phase can be PROBING, TRANSCODING OR UPLOADING
        public let currentPhase: JobPhase?
        /// Error code for the job
        public let errorCode: Int?
        /// Error message of Job
        public let errorMessage: String?
        /// Optional list of hop destinations.
        public let hopDestinations: [HopDestination]?
        /// A portion of the job's ARN, unique within your AWS Elemental MediaConvert resources
        public let id: String?
        /// The Job engine version that you requested for your job. Valid versions are in a YYYY-MM-DD format.
        public let jobEngineVersionRequested: String?
        /// The Job engine version that your job used. Job engine versions are in a YYYY-MM-DD format. When you request an expired version, the response for this property will be empty. Requests to create jobs with an expired version result in a regular job, as if no specific Job engine version was requested. When you request an invalid version, the response for this property will be empty. Requests to create jobs with an invalid version result in a 400 error message, and no job is created.
        public let jobEngineVersionUsed: String?
        /// An estimate of how far your job has progressed. This estimate is shown as a percentage of the total time from when your job leaves its queue to when your output files appear in your output Amazon S3 bucket. AWS Elemental MediaConvert provides jobPercentComplete in CloudWatch STATUS_UPDATE events and in the response to GetJob and ListJobs requests. The jobPercentComplete estimate is reliable for the following input containers: Quicktime, Transport Stream, MP4, and MXF. For some jobs, the service can't provide information about job progress. In those cases, jobPercentComplete returns a null value.
        public let jobPercentComplete: Int?
        /// The job template that the job is created from, if it is created from a job template.
        public let jobTemplate: String?
        /// Provides messages from the service about jobs that you have already successfully submitted.
        public let messages: JobMessages?
        /// List of output group details
        public let outputGroupDetails: [OutputGroupDetail]?
        /// Relative priority on the job.
        public let priority: Int?
        /// When you create a job, you can specify a queue to send it to. If you don't specify, the job will go to the default queue. For more about queues, see the User Guide topic at https://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
        public let queue: String?
        /// The job's queue hopping history.
        public let queueTransitions: [QueueTransition]?
        /// The number of times that the service automatically attempted to process your job after encountering an error.
        public let retryCount: Int?
        /// The IAM role you use for creating this job. For details about permissions, see the User Guide topic at the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/iam-role.html
        public let role: String?
        /// JobSettings contains all the transcode settings for a job.
        public let settings: JobSettings?
        /// Enable this setting when you run a test job to estimate how many reserved transcoding slots (RTS) you need. When this is enabled, MediaConvert runs your job from an on-demand queue with similar performance to what you will see with one RTS in a reserved queue. This setting is disabled by default.
        public let simulateReservedQueue: SimulateReservedQueue?
        /// A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.
        public let status: JobStatus?
        /// Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch Events. Set the interval, in seconds, between status updates. MediaConvert sends an update at this interval from the time the service begins processing your job to the time it completes the transcode or encounters an error.
        public let statusUpdateInterval: StatusUpdateInterval?
        /// Information about when jobs are submitted, started, and finished is specified in Unix epoch format in seconds.
        public let timing: Timing?
        /// User-defined metadata that you want to associate with an MediaConvert job. You specify metadata in key/value pairs.
        public let userMetadata: [String: String]?
        /// Contains any warning messages for the job. Use to help identify potential issues with your input, output, or job. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/warning_codes.html
        public let warnings: [WarningGroup]?

        @inlinable
        public init(accelerationSettings: AccelerationSettings? = nil, accelerationStatus: AccelerationStatus? = nil, arn: String? = nil, billingTagsSource: BillingTagsSource? = nil, clientRequestToken: String? = nil, createdAt: Date? = nil, currentPhase: JobPhase? = nil, errorCode: Int? = nil, errorMessage: String? = nil, hopDestinations: [HopDestination]? = nil, id: String? = nil, jobEngineVersionRequested: String? = nil, jobEngineVersionUsed: String? = nil, jobPercentComplete: Int? = nil, jobTemplate: String? = nil, messages: JobMessages? = nil, outputGroupDetails: [OutputGroupDetail]? = nil, priority: Int? = nil, queue: String? = nil, queueTransitions: [QueueTransition]? = nil, retryCount: Int? = nil, role: String? = nil, settings: JobSettings? = nil, simulateReservedQueue: SimulateReservedQueue? = nil, status: JobStatus? = nil, statusUpdateInterval: StatusUpdateInterval? = nil, timing: Timing? = nil, userMetadata: [String: String]? = nil, warnings: [WarningGroup]? = nil) {
            self.accelerationSettings = accelerationSettings
            self.accelerationStatus = accelerationStatus
            self.arn = arn
            self.billingTagsSource = billingTagsSource
            self.clientRequestToken = clientRequestToken
            self.createdAt = createdAt
            self.currentPhase = currentPhase
            self.errorCode = errorCode
            self.errorMessage = errorMessage
            self.hopDestinations = hopDestinations
            self.id = id
            self.jobEngineVersionRequested = jobEngineVersionRequested
            self.jobEngineVersionUsed = jobEngineVersionUsed
            self.jobPercentComplete = jobPercentComplete
            self.jobTemplate = jobTemplate
            self.messages = messages
            self.outputGroupDetails = outputGroupDetails
            self.priority = priority
            self.queue = queue
            self.queueTransitions = queueTransitions
            self.retryCount = retryCount
            self.role = role
            self.settings = settings
            self.simulateReservedQueue = simulateReservedQueue
            self.status = status
            self.statusUpdateInterval = statusUpdateInterval
            self.timing = timing
            self.userMetadata = userMetadata
            self.warnings = warnings
        }

        private enum CodingKeys: String, CodingKey {
            case accelerationSettings = "accelerationSettings"
            case accelerationStatus = "accelerationStatus"
            case arn = "arn"
            case billingTagsSource = "billingTagsSource"
            case clientRequestToken = "clientRequestToken"
            case createdAt = "createdAt"
            case currentPhase = "currentPhase"
            case errorCode = "errorCode"
            case errorMessage = "errorMessage"
            case hopDestinations = "hopDestinations"
            case id = "id"
            case jobEngineVersionRequested = "jobEngineVersionRequested"
            case jobEngineVersionUsed = "jobEngineVersionUsed"
            case jobPercentComplete = "jobPercentComplete"
            case jobTemplate = "jobTemplate"
            case messages = "messages"
            case outputGroupDetails = "outputGroupDetails"
            case priority = "priority"
            case queue = "queue"
            case queueTransitions = "queueTransitions"
            case retryCount = "retryCount"
            case role = "role"
            case settings = "settings"
            case simulateReservedQueue = "simulateReservedQueue"
            case status = "status"
            case statusUpdateInterval = "statusUpdateInterval"
            case timing = "timing"
            case userMetadata = "userMetadata"
            case warnings = "warnings"
        }
    }

    public struct JobEngineVersion: AWSDecodableShape {
        /// The date that this Job engine version expires. Requests to create jobs with an expired version result in a regular job, as if no specific Job engine version was requested.
        @OptionalCustomCoding<UnixEpochDateCoder>
        public var expirationDate: Date?
        /// Use Job engine versions to run jobs for your production workflow on one version, while you test and validate the latest version. Job engine versions are in a YYYY-MM-DD format.
        public let version: String?

        @inlinable
        public init(expirationDate: Date? = nil, version: String? = nil) {
            self.expirationDate = expirationDate
            self.version = version
        }

        private enum CodingKeys: String, CodingKey {
            case expirationDate = "expirationDate"
            case version = "version"
        }
    }

    public struct JobMessages: AWSDecodableShape {
        /// List of messages that are informational only and don't indicate a problem with your job.
        public let info: [String]?
        /// List of messages that warn about conditions that might cause your job not to run or to fail.
        public let warning: [String]?

        @inlinable
        public init(info: [String]? = nil, warning: [String]? = nil) {
            self.info = info
            self.warning = warning
        }

        private enum CodingKeys: String, CodingKey {
            case info = "info"
            case warning = "warning"
        }
    }

    public struct JobSettings: AWSEncodableShape & AWSDecodableShape {
        /// When specified, this offset (in milliseconds) is added to the input Ad Avail PTS time.
        public let adAvailOffset: Int?
        /// Settings for ad avail blanking. Video can be blanked or overlaid with an image, and audio muted during SCTE-35 triggered ad avails.
        public let availBlanking: AvailBlanking?
        /// Use 3D LUTs to specify custom color mapping behavior when you convert from one color space into another. You can include up to 8 different 3D LUTs. For more information, see: https://docs.aws.amazon.com/mediaconvert/latest/ug/3d-luts.html
        public let colorConversion3DLUTSettings: [ColorConversion3DLUTSetting]?
        /// Settings for Event Signaling And Messaging (ESAM). If you don't do ad insertion, you can ignore these settings.
        public let esam: EsamSettings?
        /// If your source content has EIA-608 Line 21 Data Services, enable this feature to specify what MediaConvert does with the Extended Data Services (XDS) packets. You can choose to pass through XDS packets, or remove them from the output. For more information about XDS, see EIA-608 Line Data Services, section 9.5.1.5 05h Content Advisory.
        public let extendedDataServices: ExtendedDataServices?
        /// Specify the input that MediaConvert references for your default output settings.  MediaConvert uses this input's Resolution, Frame rate, and Pixel aspect ratio for all  outputs that you don't manually specify different output settings for. Enabling this setting will disable "Follow source" for all other inputs.  If MediaConvert cannot follow your source, for example if you specify an audio-only input,  MediaConvert uses the first followable input instead. In your JSON job specification, enter an integer from 1 to 150 corresponding  to the order of your inputs.
        public let followSource: Int?
        /// Use Inputs to define source file used in the transcode job. There can be multiple inputs add in a job. These inputs will be concantenated together to create the output.
        public let inputs: [Input]?
        /// Use these settings only when you use Kantar watermarking. Specify the values that MediaConvert uses to generate and place Kantar watermarks in your output audio. These settings apply to every output in your job. In addition to specifying these values, you also need to store your Kantar credentials in AWS Secrets Manager. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/kantar-watermarking.html.
        public let kantarWatermark: KantarWatermarkSettings?
        /// Overlay motion graphics on top of your video. The motion graphics that you specify here appear on all outputs in all output groups. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/motion-graphic-overlay.html.
        public let motionImageInserter: MotionImageInserter?
        /// Settings for your Nielsen configuration. If you don't do Nielsen measurement and analytics, ignore these settings. When you enable Nielsen configuration, MediaConvert enables PCM to ID3 tagging for all outputs in the job.
        public let nielsenConfiguration: NielsenConfiguration?
        /// Ignore these settings unless you are using Nielsen non-linear watermarking. Specify the values that MediaConvert uses to generate and place Nielsen watermarks in your output audio. In addition to specifying these values, you also need to set up your cloud TIC server. These settings apply to every output in your job. The MediaConvert implementation is currently with the following Nielsen versions: Nielsen Watermark SDK Version 6.0.13 Nielsen NLM Watermark Engine Version 1.3.3 Nielsen Watermark Authenticator [SID_TIC] Version [7.0.0]
        public let nielsenNonLinearWatermark: NielsenNonLinearWatermarkSettings?
        /// Contains one group of settings for each set of outputs that share a common package type. All unpackaged files (MPEG-4, MPEG-2 TS, Quicktime, MXF, and no container) are grouped in a single output group as well. Required in is a group of settings that apply to the whole group. This required object depends on the value you set for Type. Type, settings object pairs are as follows. * FILE_GROUP_SETTINGS, FileGroupSettings * HLS_GROUP_SETTINGS, HlsGroupSettings * DASH_ISO_GROUP_SETTINGS, DashIsoGroupSettings * MS_SMOOTH_GROUP_SETTINGS, MsSmoothGroupSettings * CMAF_GROUP_SETTINGS, CmafGroupSettings
        public let outputGroups: [OutputGroup]?
        /// These settings control how the service handles timecodes throughout the job. These settings don't affect input clipping.
        public let timecodeConfig: TimecodeConfig?
        /// Insert user-defined custom ID3 metadata at timecodes that you specify. In each output that you want to include this metadata, you must set ID3 metadata to Passthrough.
        public let timedMetadataInsertion: TimedMetadataInsertion?

        @inlinable
        public init(adAvailOffset: Int? = nil, availBlanking: AvailBlanking? = nil, colorConversion3DLUTSettings: [ColorConversion3DLUTSetting]? = nil, esam: EsamSettings? = nil, extendedDataServices: ExtendedDataServices? = nil, followSource: Int? = nil, inputs: [Input]? = nil, kantarWatermark: KantarWatermarkSettings? = nil, motionImageInserter: MotionImageInserter? = nil, nielsenConfiguration: NielsenConfiguration? = nil, nielsenNonLinearWatermark: NielsenNonLinearWatermarkSettings? = nil, outputGroups: [OutputGroup]? = nil, timecodeConfig: TimecodeConfig? = nil, timedMetadataInsertion: TimedMetadataInsertion? = nil) {
            self.adAvailOffset = adAvailOffset
            self.availBlanking = availBlanking
            self.colorConversion3DLUTSettings = colorConversion3DLUTSettings
            self.esam = esam
            self.extendedDataServices = extendedDataServices
            self.followSource = followSource
            self.inputs = inputs
            self.kantarWatermark = kantarWatermark
            self.motionImageInserter = motionImageInserter
            self.nielsenConfiguration = nielsenConfiguration
            self.nielsenNonLinearWatermark = nielsenNonLinearWatermark
            self.outputGroups = outputGroups
            self.timecodeConfig = timecodeConfig
            self.timedMetadataInsertion = timedMetadataInsertion
        }

        public func validate(name: String) throws {
            try self.validate(self.adAvailOffset, name: "adAvailOffset", parent: name, max: 1000)
            try self.validate(self.adAvailOffset, name: "adAvailOffset", parent: name, min: -1000)
            try self.availBlanking?.validate(name: "\(name).availBlanking")
            try self.colorConversion3DLUTSettings?.forEach {
                try $0.validate(name: "\(name).colorConversion3DLUTSettings[]")
            }
            try self.esam?.validate(name: "\(name).esam")
            try self.validate(self.followSource, name: "followSource", parent: name, max: 150)
            try self.validate(self.followSource, name: "followSource", parent: name, min: 1)
            try self.inputs?.forEach {
                try $0.validate(name: "\(name).inputs[]")
            }
            try self.kantarWatermark?.validate(name: "\(name).kantarWatermark")
            try self.motionImageInserter?.validate(name: "\(name).motionImageInserter")
            try self.nielsenConfiguration?.validate(name: "\(name).nielsenConfiguration")
            try self.nielsenNonLinearWatermark?.validate(name: "\(name).nielsenNonLinearWatermark")
            try self.outputGroups?.forEach {
                try $0.validate(name: "\(name).outputGroups[]")
            }
            try self.timecodeConfig?.validate(name: "\(name).timecodeConfig")
            try self.timedMetadataInsertion?.validate(name: "\(name).timedMetadataInsertion")
        }

        private enum CodingKeys: String, CodingKey {
            case adAvailOffset = "adAvailOffset"
            case availBlanking = "availBlanking"
            case colorConversion3DLUTSettings = "colorConversion3DLUTSettings"
            case esam = "esam"
            case extendedDataServices = "extendedDataServices"
            case followSource = "followSource"
            case inputs = "inputs"
            case kantarWatermark = "kantarWatermark"
            case motionImageInserter = "motionImageInserter"
            case nielsenConfiguration = "nielsenConfiguration"
            case nielsenNonLinearWatermark = "nielsenNonLinearWatermark"
            case outputGroups = "outputGroups"
            case timecodeConfig = "timecodeConfig"
            case timedMetadataInsertion = "timedMetadataInsertion"
        }
    }

    public struct JobTemplate: AWSDecodableShape {
        /// Accelerated transcoding can significantly speed up jobs with long, visually complex content.
        public let accelerationSettings: AccelerationSettings?
        /// An identifier for this resource that is unique within all of AWS.
        public let arn: String?
        /// An optional category you create to organize your job templates.
        public let category: String?
        /// The timestamp in epoch seconds for Job template creation.
        @OptionalCustomCoding<UnixEpochDateCoder>
        public var createdAt: Date?
        /// An optional description you create for each job template.
        public let description: String?
        /// Optional list of hop destinations.
        public let hopDestinations: [HopDestination]?
        /// The timestamp in epoch seconds when the Job template was last updated.
        @OptionalCustomCoding<UnixEpochDateCoder>
        public var lastUpdated: Date?
        /// A name you create for each job template. Each name must be unique within your account.
        public let name: String?
        /// Relative priority on the job.
        public let priority: Int?
        /// Optional. The queue that jobs created from this template are assigned to. If you don't specify this, jobs will go to the default queue.
        public let queue: String?
        /// JobTemplateSettings contains all the transcode settings saved in the template that will be applied to jobs created from it.
        public let settings: JobTemplateSettings?
        /// Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch Events. Set the interval, in seconds, between status updates. MediaConvert sends an update at this interval from the time the service begins processing your job to the time it completes the transcode or encounters an error.
        public let statusUpdateInterval: StatusUpdateInterval?
        /// A job template can be of two types: system or custom. System or built-in job templates can't be modified or deleted by the user.
        public let type: `Type`?

        @inlinable
        public init(accelerationSettings: AccelerationSettings? = nil, arn: String? = nil, category: String? = nil, createdAt: Date? = nil, description: String? = nil, hopDestinations: [HopDestination]? = nil, lastUpdated: Date? = nil, name: String? = nil, priority: Int? = nil, queue: String? = nil, settings: JobTemplateSettings? = nil, statusUpdateInterval: StatusUpdateInterval? = nil, type: `Type`? = nil) {
            self.accelerationSettings = accelerationSettings
            self.arn = arn
            self.category = category
            self.createdAt = createdAt
            self.description = description
            self.hopDestinations = hopDestinations
            self.lastUpdated = lastUpdated
            self.name = name
            self.priority = priority
            self.queue = queue
            self.settings = settings
            self.statusUpdateInterval = statusUpdateInterval
            self.type = type
        }

        private enum CodingKeys: String, CodingKey {
            case accelerationSettings = "accelerationSettings"
            case arn = "arn"
            case category = "category"
            case createdAt = "createdAt"
            case description = "description"
            case hopDestinations = "hopDestinations"
            case lastUpdated = "lastUpdated"
            case name = "name"
            case priority = "priority"
            case queue = "queue"
            case settings = "settings"
            case statusUpdateInterval = "statusUpdateInterval"
            case type = "type"
        }
    }

    public struct JobTemplateSettings: AWSEncodableShape & AWSDecodableShape {
        /// When specified, this offset (in milliseconds) is added to the input Ad Avail PTS time.
        public let adAvailOffset: Int?
        /// Settings for ad avail blanking. Video can be blanked or overlaid with an image, and audio muted during SCTE-35 triggered ad avails.
        public let availBlanking: AvailBlanking?
        /// Use 3D LUTs to specify custom color mapping behavior when you convert from one color space into another. You can include up to 8 different 3D LUTs. For more information, see: https://docs.aws.amazon.com/mediaconvert/latest/ug/3d-luts.html
        public let colorConversion3DLUTSettings: [ColorConversion3DLUTSetting]?
        /// Settings for Event Signaling And Messaging (ESAM). If you don't do ad insertion, you can ignore these settings.
        public let esam: EsamSettings?
        /// If your source content has EIA-608 Line 21 Data Services, enable this feature to specify what MediaConvert does with the Extended Data Services (XDS) packets. You can choose to pass through XDS packets, or remove them from the output. For more information about XDS, see EIA-608 Line Data Services, section 9.5.1.5 05h Content Advisory.
        public let extendedDataServices: ExtendedDataServices?
        /// Specify the input that MediaConvert references for your default output settings.  MediaConvert uses this input's Resolution, Frame rate, and Pixel aspect ratio for all  outputs that you don't manually specify different output settings for. Enabling this setting will disable "Follow source" for all other inputs.  If MediaConvert cannot follow your source, for example if you specify an audio-only input,  MediaConvert uses the first followable input instead. In your JSON job specification, enter an integer from 1 to 150 corresponding  to the order of your inputs.
        public let followSource: Int?
        /// Use Inputs to define the source file used in the transcode job. There can only be one input in a job template. Using the API, you can include multiple inputs when referencing a job template.
        public let inputs: [InputTemplate]?
        /// Use these settings only when you use Kantar watermarking. Specify the values that MediaConvert uses to generate and place Kantar watermarks in your output audio. These settings apply to every output in your job. In addition to specifying these values, you also need to store your Kantar credentials in AWS Secrets Manager. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/kantar-watermarking.html.
        public let kantarWatermark: KantarWatermarkSettings?
        /// Overlay motion graphics on top of your video. The motion graphics that you specify here appear on all outputs in all output groups. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/motion-graphic-overlay.html.
        public let motionImageInserter: MotionImageInserter?
        /// Settings for your Nielsen configuration. If you don't do Nielsen measurement and analytics, ignore these settings. When you enable Nielsen configuration, MediaConvert enables PCM to ID3 tagging for all outputs in the job.
        public let nielsenConfiguration: NielsenConfiguration?
        /// Ignore these settings unless you are using Nielsen non-linear watermarking. Specify the values that MediaConvert uses to generate and place Nielsen watermarks in your output audio. In addition to specifying these values, you also need to set up your cloud TIC server. These settings apply to every output in your job. The MediaConvert implementation is currently with the following Nielsen versions: Nielsen Watermark SDK Version 6.0.13 Nielsen NLM Watermark Engine Version 1.3.3 Nielsen Watermark Authenticator [SID_TIC] Version [7.0.0]
        public let nielsenNonLinearWatermark: NielsenNonLinearWatermarkSettings?
        /// Contains one group of settings for each set of outputs that share a common package type. All unpackaged files (MPEG-4, MPEG-2 TS, Quicktime, MXF, and no container) are grouped in a single output group as well. Required in is a group of settings that apply to the whole group. This required object depends on the value you set for Type. Type, settings object pairs are as follows. * FILE_GROUP_SETTINGS, FileGroupSettings * HLS_GROUP_SETTINGS, HlsGroupSettings * DASH_ISO_GROUP_SETTINGS, DashIsoGroupSettings * MS_SMOOTH_GROUP_SETTINGS, MsSmoothGroupSettings * CMAF_GROUP_SETTINGS, CmafGroupSettings
        public let outputGroups: [OutputGroup]?
        /// These settings control how the service handles timecodes throughout the job. These settings don't affect input clipping.
        public let timecodeConfig: TimecodeConfig?
        /// Insert user-defined custom ID3 metadata at timecodes that you specify. In each output that you want to include this metadata, you must set ID3 metadata to Passthrough.
        public let timedMetadataInsertion: TimedMetadataInsertion?

        @inlinable
        public init(adAvailOffset: Int? = nil, availBlanking: AvailBlanking? = nil, colorConversion3DLUTSettings: [ColorConversion3DLUTSetting]? = nil, esam: EsamSettings? = nil, extendedDataServices: ExtendedDataServices? = nil, followSource: Int? = nil, inputs: [InputTemplate]? = nil, kantarWatermark: KantarWatermarkSettings? = nil, motionImageInserter: MotionImageInserter? = nil, nielsenConfiguration: NielsenConfiguration? = nil, nielsenNonLinearWatermark: NielsenNonLinearWatermarkSettings? = nil, outputGroups: [OutputGroup]? = nil, timecodeConfig: TimecodeConfig? = nil, timedMetadataInsertion: TimedMetadataInsertion? = nil) {
            self.adAvailOffset = adAvailOffset
            self.availBlanking = availBlanking
            self.colorConversion3DLUTSettings = colorConversion3DLUTSettings
            self.esam = esam
            self.extendedDataServices = extendedDataServices
            self.followSource = followSource
            self.inputs = inputs
            self.kantarWatermark = kantarWatermark
            self.motionImageInserter = motionImageInserter
            self.nielsenConfiguration = nielsenConfiguration
            self.nielsenNonLinearWatermark = nielsenNonLinearWatermark
            self.outputGroups = outputGroups
            self.timecodeConfig = timecodeConfig
            self.timedMetadataInsertion = timedMetadataInsertion
        }

        public func validate(name: String) throws {
            try self.validate(self.adAvailOffset, name: "adAvailOffset", parent: name, max: 1000)
            try self.validate(self.adAvailOffset, name: "adAvailOffset", parent: name, min: -1000)
            try self.availBlanking?.validate(name: "\(name).availBlanking")
            try self.colorConversion3DLUTSettings?.forEach {
                try $0.validate(name: "\(name).colorConversion3DLUTSettings[]")
            }
            try self.esam?.validate(name: "\(name).esam")
            try self.validate(self.followSource, name: "followSource", parent: name, max: 150)
            try self.validate(self.followSource, name: "followSource", parent: name, min: 1)
            try self.inputs?.forEach {
                try $0.validate(name: "\(name).inputs[]")
            }
            try self.kantarWatermark?.validate(name: "\(name).kantarWatermark")
            try self.motionImageInserter?.validate(name: "\(name).motionImageInserter")
            try self.nielsenConfiguration?.validate(name: "\(name).nielsenConfiguration")
            try self.nielsenNonLinearWatermark?.validate(name: "\(name).nielsenNonLinearWatermark")
            try self.outputGroups?.forEach {
                try $0.validate(name: "\(name).outputGroups[]")
            }
            try self.timecodeConfig?.validate(name: "\(name).timecodeConfig")
            try self.timedMetadataInsertion?.validate(name: "\(name).timedMetadataInsertion")
        }

        private enum CodingKeys: String, CodingKey {
            case adAvailOffset = "adAvailOffset"
            case availBlanking = "availBlanking"
            case colorConversion3DLUTSettings = "colorConversion3DLUTSettings"
            case esam = "esam"
            case extendedDataServices = "extendedDataServices"
            case followSource = "followSource"
            case inputs = "inputs"
            case kantarWatermark = "kantarWatermark"
            case motionImageInserter = "motionImageInserter"
            case nielsenConfiguration = "nielsenConfiguration"
            case nielsenNonLinearWatermark = "nielsenNonLinearWatermark"
            case outputGroups = "outputGroups"
            case timecodeConfig = "timecodeConfig"
            case timedMetadataInsertion = "timedMetadataInsertion"
        }
    }

    public struct KantarWatermarkSettings: AWSEncodableShape & AWSDecodableShape {
        /// Provide an audio channel name from your Kantar audio license.
        public let channelName: String?
        /// Specify a unique identifier for Kantar to use for this piece of content.
        public let contentReference: String?
        /// Provide the name of the AWS Secrets Manager secret where your Kantar credentials are stored. Note that your MediaConvert service role must provide access to this secret. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/granting-permissions-for-mediaconvert-to-access-secrets-manager-secret.html. For instructions on creating a secret, see https://docs.aws.amazon.com/secretsmanager/latest/userguide/tutorials_basic.html, in the AWS Secrets Manager User Guide.
        public let credentialsSecretName: String?
        /// Optional. Specify an offset, in whole seconds, from the start of your output and the beginning of the watermarking. When you don't specify an offset, Kantar defaults to zero.
        public let fileOffset: Double?
        /// Provide your Kantar license ID number. You should get this number from Kantar.
        public let kantarLicenseId: Int?
        /// Provide the HTTPS endpoint to the Kantar server. You should get this endpoint from Kantar.
        public let kantarServerUrl: String?
        /// Optional. Specify the Amazon S3 bucket where you want MediaConvert to store your Kantar watermark XML logs. When you don't specify a bucket, MediaConvert doesn't save these logs. Note that your MediaConvert service role must provide access to this location. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/iam-role.html
        public let logDestination: String?
        /// You can optionally use this field to specify the first timestamp that Kantar embeds during watermarking. Kantar suggests that you be very cautious when using this Kantar feature, and that you use it only on channels that are managed specifically for use with this feature by your Audience Measurement Operator. For more information about this feature, contact Kantar technical support.
        public let metadata3: String?
        /// Additional metadata that MediaConvert sends to Kantar. Maximum length is 50 characters.
        public let metadata4: String?
        /// Additional metadata that MediaConvert sends to Kantar. Maximum length is 50 characters.
        public let metadata5: String?
        /// Additional metadata that MediaConvert sends to Kantar. Maximum length is 50 characters.
        public let metadata6: String?
        /// Additional metadata that MediaConvert sends to Kantar. Maximum length is 50 characters.
        public let metadata7: String?
        /// Additional metadata that MediaConvert sends to Kantar. Maximum length is 50 characters.
        public let metadata8: String?

        @inlinable
        public init(channelName: String? = nil, contentReference: String? = nil, credentialsSecretName: String? = nil, fileOffset: Double? = nil, kantarLicenseId: Int? = nil, kantarServerUrl: String? = nil, logDestination: String? = nil, metadata3: String? = nil, metadata4: String? = nil, metadata5: String? = nil, metadata6: String? = nil, metadata7: String? = nil, metadata8: String? = nil) {
            self.channelName = channelName
            self.contentReference = contentReference
            self.credentialsSecretName = credentialsSecretName
            self.fileOffset = fileOffset
            self.kantarLicenseId = kantarLicenseId
            self.kantarServerUrl = kantarServerUrl
            self.logDestination = logDestination
            self.metadata3 = metadata3
            self.metadata4 = metadata4
            self.metadata5 = metadata5
            self.metadata6 = metadata6
            self.metadata7 = metadata7
            self.metadata8 = metadata8
        }

        public func validate(name: String) throws {
            try self.validate(self.channelName, name: "channelName", parent: name, max: 20)
            try self.validate(self.channelName, name: "channelName", parent: name, min: 1)
            try self.validate(self.contentReference, name: "contentReference", parent: name, max: 50)
            try self.validate(self.contentReference, name: "contentReference", parent: name, min: 1)
            try self.validate(self.contentReference, name: "contentReference", parent: name, pattern: "^[a-zA-Z0-9_\\/_+=.@-]*$")
            try self.validate(self.credentialsSecretName, name: "credentialsSecretName", parent: name, max: 2048)
            try self.validate(self.credentialsSecretName, name: "credentialsSecretName", parent: name, min: 1)
            try self.validate(self.credentialsSecretName, name: "credentialsSecretName", parent: name, pattern: "^(arn:[a-z-]+:secretsmanager:[\\w-]+:\\d{12}:secret:)?[a-zA-Z0-9_\\/_+=.@-]*$")
            try self.validate(self.kantarLicenseId, name: "kantarLicenseId", parent: name, max: 2147483647)
            try self.validate(self.kantarLicenseId, name: "kantarLicenseId", parent: name, min: 0)
            try self.validate(self.kantarServerUrl, name: "kantarServerUrl", parent: name, pattern: "^https:\\/\\/.*.kantarmedia.*$")
            try self.validate(self.logDestination, name: "logDestination", parent: name, pattern: "^s3:\\/\\/")
            try self.validate(self.metadata3, name: "metadata3", parent: name, max: 50)
            try self.validate(self.metadata3, name: "metadata3", parent: name, min: 1)
            try self.validate(self.metadata4, name: "metadata4", parent: name, max: 50)
            try self.validate(self.metadata4, name: "metadata4", parent: name, min: 1)
            try self.validate(self.metadata5, name: "metadata5", parent: name, max: 50)
            try self.validate(self.metadata5, name: "metadata5", parent: name, min: 1)
            try self.validate(self.metadata6, name: "metadata6", parent: name, max: 50)
            try self.validate(self.metadata6, name: "metadata6", parent: name, min: 1)
            try self.validate(self.metadata7, name: "metadata7", parent: name, max: 50)
            try self.validate(self.metadata7, name: "metadata7", parent: name, min: 1)
            try self.validate(self.metadata8, name: "metadata8", parent: name, max: 50)
            try self.validate(self.metadata8, name: "metadata8", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case channelName = "channelName"
            case contentReference = "contentReference"
            case credentialsSecretName = "credentialsSecretName"
            case fileOffset = "fileOffset"
            case kantarLicenseId = "kantarLicenseId"
            case kantarServerUrl = "kantarServerUrl"
            case logDestination = "logDestination"
            case metadata3 = "metadata3"
            case metadata4 = "metadata4"
            case metadata5 = "metadata5"
            case metadata6 = "metadata6"
            case metadata7 = "metadata7"
            case metadata8 = "metadata8"
        }
    }

    public struct ListJobTemplatesRequest: AWSEncodableShape {
        /// Optionally, specify a job template category to limit responses to only job templates from that category.
        public let category: String?
        /// Optional. When you request a list of job templates, you can choose to list them alphabetically by NAME or chronologically by CREATION_DATE. If you don't specify, the service will list them by name.
        public let listBy: JobTemplateListBy?
        /// Optional. Number of job templates, up to twenty, that will be returned at one time.
        public let maxResults: Int?
        /// Use this string, provided with the response to a previous request, to request the next batch of job templates.
        public let nextToken: String?
        /// Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource.
        public let order: Order?

        @inlinable
        public init(category: String? = nil, listBy: JobTemplateListBy? = nil, maxResults: Int? = nil, nextToken: String? = nil, order: Order? = nil) {
            self.category = category
            self.listBy = listBy
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.order = order
        }

        public func encode(to encoder: Encoder) throws {
            let request = encoder.userInfo[.awsRequest]! as! RequestEncodingContainer
            _ = encoder.container(keyedBy: CodingKeys.self)
            request.encodeQuery(self.category, key: "category")
            request.encodeQuery(self.listBy, key: "listBy")
            request.encodeQuery(self.maxResults, key: "maxResults")
            request.encodeQuery(self.nextToken, key: "nextToken")
            request.encodeQuery(self.order, key: "order")
        }

        public func validate(name: String) throws {
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 20)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListJobTemplatesResponse: AWSDecodableShape {
        /// List of Job templates.
        public let jobTemplates: [JobTemplate]?
        /// Use this string to request the next batch of job templates.
        public let nextToken: String?

        @inlinable
        public init(jobTemplates: [JobTemplate]? = nil, nextToken: String? = nil) {
            self.jobTemplates = jobTemplates
            self.nextToken = nextToken
        }

        private enum CodingKeys: String, CodingKey {
            case jobTemplates = "jobTemplates"
            case nextToken = "nextToken"
        }
    }

    public struct ListJobsRequest: AWSEncodableShape {
        /// Optional. Number of jobs, up to twenty, that will be returned at one time.
        public let maxResults: Int?
        /// Optional. Use this string, provided with the response to a previous request, to request the next batch of jobs.
        public let nextToken: String?
        /// Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource.
        public let order: Order?
        /// Optional. Provide a queue name to get back only jobs from that queue.
        public let queue: String?
        /// Optional. A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.
        public let status: JobStatus?

        @inlinable
        public init(maxResults: Int? = nil, nextToken: String? = nil, order: Order? = nil, queue: String? = nil, status: JobStatus? = nil) {
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.order = order
            self.queue = queue
            self.status = status
        }

        public func encode(to encoder: Encoder) throws {
            let request = encoder.userInfo[.awsRequest]! as! RequestEncodingContainer
            _ = encoder.container(keyedBy: CodingKeys.self)
            request.encodeQuery(self.maxResults, key: "maxResults")
            request.encodeQuery(self.nextToken, key: "nextToken")
            request.encodeQuery(self.order, key: "order")
            request.encodeQuery(self.queue, key: "queue")
            request.encodeQuery(self.status, key: "status")
        }

        public func validate(name: String) throws {
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 20)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListJobsResponse: AWSDecodableShape {
        /// List of jobs
        public let jobs: [Job]?
        /// Use this string to request the next batch of jobs.
        public let nextToken: String?

        @inlinable
        public init(jobs: [Job]? = nil, nextToken: String? = nil) {
            self.jobs = jobs
            self.nextToken = nextToken
        }

        private enum CodingKeys: String, CodingKey {
            case jobs = "jobs"
            case nextToken = "nextToken"
        }
    }

    public struct ListPresetsRequest: AWSEncodableShape {
        /// Optionally, specify a preset category to limit responses to only presets from that category.
        public let category: String?
        /// Optional. When you request a list of presets, you can choose to list them alphabetically by NAME or chronologically by CREATION_DATE. If you don't specify, the service will list them by name.
        public let listBy: PresetListBy?
        /// Optional. Number of presets, up to twenty, that will be returned at one time
        public let maxResults: Int?
        /// Use this string, provided with the response to a previous request, to request the next batch of presets.
        public let nextToken: String?
        /// Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource.
        public let order: Order?

        @inlinable
        public init(category: String? = nil, listBy: PresetListBy? = nil, maxResults: Int? = nil, nextToken: String? = nil, order: Order? = nil) {
            self.category = category
            self.listBy = listBy
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.order = order
        }

        public func encode(to encoder: Encoder) throws {
            let request = encoder.userInfo[.awsRequest]! as! RequestEncodingContainer
            _ = encoder.container(keyedBy: CodingKeys.self)
            request.encodeQuery(self.category, key: "category")
            request.encodeQuery(self.listBy, key: "listBy")
            request.encodeQuery(self.maxResults, key: "maxResults")
            request.encodeQuery(self.nextToken, key: "nextToken")
            request.encodeQuery(self.order, key: "order")
        }

        public func validate(name: String) throws {
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 20)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListPresetsResponse: AWSDecodableShape {
        /// Use this string to request the next batch of presets.
        public let nextToken: String?
        /// List of presets
        public let presets: [Preset]?

        @inlinable
        public init(nextToken: String? = nil, presets: [Preset]? = nil) {
            self.nextToken = nextToken
            self.presets = presets
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "nextToken"
            case presets = "presets"
        }
    }

    public struct ListQueuesRequest: AWSEncodableShape {
        /// Optional. When you request a list of queues, you can choose to list them alphabetically by NAME or chronologically by CREATION_DATE. If you don't specify, the service will list them by creation date.
        public let listBy: QueueListBy?
        /// Optional. Number of queues, up to twenty, that will be returned at one time.
        public let maxResults: Int?
        /// Use this string, provided with the response to a previous request, to request the next batch of queues.
        public let nextToken: String?
        /// Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource.
        public let order: Order?

        @inlinable
        public init(listBy: QueueListBy? = nil, maxResults: Int? = nil, nextToken: String? = nil, order: Order? = nil) {
            self.listBy = listBy
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.order = order
        }

        public func encode(to encoder: Encoder) throws {
            let request = encoder.userInfo[.awsRequest]! as! RequestEncodingContainer
            _ = encoder.container(keyedBy: CodingKeys.self)
            request.encodeQuery(self.listBy, key: "listBy")
            request.encodeQuery(self.maxResults, key: "maxResults")
            request.encodeQuery(self.nextToken, key: "nextToken")
            request.encodeQuery(self.order, key: "order")
        }

        public func validate(name: String) throws {
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 20)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListQueuesResponse: AWSDecodableShape {
        /// Use this string to request the next batch of queues.
        public let nextToken: String?
        /// List of queues.
        public let queues: [Queue]?
        /// The maximum number of jobs that MediaConvert can process at one time, across all of your on-demand queues in the current AWS Region.
        public let totalConcurrentJobs: Int?
        /// The remaining number of concurrent jobs that are not associated with a queue and are available to allocate to a queue. You can allocate these jobs when you create or update a queue.
        public let unallocatedConcurrentJobs: Int?

        @inlinable
        public init(nextToken: String? = nil, queues: [Queue]? = nil, totalConcurrentJobs: Int? = nil, unallocatedConcurrentJobs: Int? = nil) {
            self.nextToken = nextToken
            self.queues = queues
            self.totalConcurrentJobs = totalConcurrentJobs
            self.unallocatedConcurrentJobs = unallocatedConcurrentJobs
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "nextToken"
            case queues = "queues"
            case totalConcurrentJobs = "totalConcurrentJobs"
            case unallocatedConcurrentJobs = "unallocatedConcurrentJobs"
        }
    }

    public struct ListTagsForResourceRequest: AWSEncodableShape {
        /// The Amazon Resource Name (ARN) of the resource that you want to list tags for. To get the ARN, send a GET request with the resource name.
        public let arn: String

        @inlinable
        public init(arn: String) {
            self.arn = arn
        }

        public func encode(to encoder: Encoder) throws {
            let request = encoder.userInfo[.awsRequest]! as! RequestEncodingContainer
            _ = encoder.container(keyedBy: CodingKeys.self)
            request.encodePath(self.arn, key: "Arn")
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListTagsForResourceResponse: AWSDecodableShape {
        /// The Amazon Resource Name (ARN) and tags for an AWS Elemental MediaConvert resource.
        public let resourceTags: ResourceTags?

        @inlinable
        public init(resourceTags: ResourceTags? = nil) {
            self.resourceTags = resourceTags
        }

        private enum CodingKeys: String, CodingKey {
            case resourceTags = "resourceTags"
        }
    }

    public struct ListVersionsRequest: AWSEncodableShape {
        /// Optional. Number of valid Job engine versions, up to twenty, that will be returned at one time.
        public let maxResults: Int?
        /// Optional. Use this string, provided with the response to a previous request, to request the next batch of Job engine versions.
        public let nextToken: String?

        @inlinable
        public init(maxResults: Int? = nil, nextToken: String? = nil) {
            self.maxResults = maxResults
            self.nextToken = nextToken
        }

        public func encode(to encoder: Encoder) throws {
            let request = encoder.userInfo[.awsRequest]! as! RequestEncodingContainer
            _ = encoder.container(keyedBy: CodingKeys.self)
            request.encodeQuery(self.maxResults, key: "maxResults")
            request.encodeQuery(self.nextToken, key: "nextToken")
        }

        public func validate(name: String) throws {
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 20)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct ListVersionsResponse: AWSDecodableShape {
        /// Optional. Use this string, provided with the response to a previous request, to request the next batch of Job engine versions.
        public let nextToken: String?
        /// Retrieve a JSON array of all available Job engine versions and the date they expire.
        public let versions: [JobEngineVersion]?

        @inlinable
        public init(nextToken: String? = nil, versions: [JobEngineVersion]? = nil) {
            self.nextToken = nextToken
            self.versions = versions
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "nextToken"
            case versions = "versions"
        }
    }

    public struct M2tsScte35Esam: AWSEncodableShape & AWSDecodableShape {
        /// Packet Identifier (PID) of the SCTE-35 stream in the transport stream generated by ESAM.
        public let scte35EsamPid: Int?

        @inlinable
        public init(scte35EsamPid: Int? = nil) {
            self.scte35EsamPid = scte35EsamPid
        }

        public func validate(name: String) throws {
            try self.validate(self.scte35EsamPid, name: "scte35EsamPid", parent: name, max: 8182)
            try self.validate(self.scte35EsamPid, name: "scte35EsamPid", parent: name, min: 32)
        }

        private enum CodingKeys: String, CodingKey {
            case scte35EsamPid = "scte35EsamPid"
        }
    }

    public struct M2tsSettings: AWSEncodableShape & AWSDecodableShape {
        /// Selects between the DVB and ATSC buffer models for Dolby Digital audio.
        public let audioBufferModel: M2tsAudioBufferModel?
        /// Specify this setting only when your output will be consumed by a downstream repackaging workflow that is sensitive to very small duration differences between video and audio. For this situation, choose Match video duration. In all other cases, keep the default value, Default codec duration. When you choose Match video duration, MediaConvert pads the output audio streams with silence or trims them to ensure that the total duration of each audio stream is at least as long as the total duration of the video stream. After padding or trimming, the audio stream duration is no more than one frame longer than the video stream. MediaConvert applies audio padding or trimming only to the end of the last segment of the output. For unsegmented outputs, MediaConvert adds padding only to the end of the file. When you keep the default value, any minor discrepancies between audio and video duration will depend on your output audio codec.
        public let audioDuration: M2tsAudioDuration?
        /// The number of audio frames to insert for each PES packet.
        public let audioFramesPerPes: Int?
        /// Specify the packet identifiers (PIDs) for any elementary audio streams you include in this output. Specify multiple PIDs as a JSON array. Default is the range 482-492.
        public let audioPids: [Int]?
        /// Manually specify the difference in PTS offset that will be applied to the audio track, in seconds or milliseconds, when you set PTS offset to Seconds or Milliseconds. Enter an integer from -10000 to 10000. Leave blank to keep the default value 0.
        public let audioPtsOffsetDelta: Int?
        /// Specify the output bitrate of the transport stream in bits per second. Setting to 0 lets the muxer automatically determine the appropriate bitrate. Other common values are 3750000, 7500000, and 15000000.
        public let bitrate: Int?
        /// Controls what buffer model to use for accurate interleaving. If set to MULTIPLEX, use multiplex buffer model. If set to NONE, this can lead to lower latency, but low-memory devices may not be able to play back the stream without interruptions.
        public let bufferModel: M2tsBufferModel?
        /// If you select ALIGN_TO_VIDEO, MediaConvert writes captions and data packets with Presentation Timestamp (PTS) values greater than or equal to the first video packet PTS (MediaConvert drops captions and data packets with lesser PTS values). Keep the default value to allow all PTS values.
        public let dataPTSControl: M2tsDataPtsControl?
        /// Use these settings to insert a DVB Network Information Table (NIT) in the transport stream of this output.
        public let dvbNitSettings: DvbNitSettings?
        /// Use these settings to insert a DVB Service Description Table (SDT) in the transport stream of this output.
        public let dvbSdtSettings: DvbSdtSettings?
        /// Specify the packet identifiers (PIDs) for DVB subtitle data included in this output. Specify multiple PIDs as a JSON array. Default is the range 460-479.
        public let dvbSubPids: [Int]?
        /// Use these settings to insert a DVB Time and Date Table (TDT) in the transport stream of this output.
        public let dvbTdtSettings: DvbTdtSettings?
        /// Specify the packet identifier (PID) for DVB teletext data you include in this output. Default is 499.
        public let dvbTeletextPid: Int?
        /// When set to VIDEO_AND_FIXED_INTERVALS, audio EBP markers will be added to partitions 3 and 4. The interval between these additional markers will be fixed, and will be slightly shorter than the video EBP marker interval. When set to VIDEO_INTERVAL, these additional markers will not be inserted. Only applicable when EBP segmentation markers are is selected (segmentationMarkers is EBP or EBP_LEGACY).
        public let ebpAudioInterval: M2tsEbpAudioInterval?
        /// Selects which PIDs to place EBP markers on. They can either be placed only on the video PID, or on both the video PID and all audio PIDs. Only applicable when EBP segmentation markers are is selected (segmentationMarkers is EBP or EBP_LEGACY).
        public let ebpPlacement: M2tsEbpPlacement?
        /// Controls whether to include the ES Rate field in the PES header.
        public let esRateInPes: M2tsEsRateInPes?
        /// Keep the default value unless you know that your audio EBP markers are incorrectly appearing before your video EBP markers. To correct this problem, set this value to Force.
        public let forceTsVideoEbpOrder: M2tsForceTsVideoEbpOrder?
        /// The length, in seconds, of each fragment. Only used with EBP markers.
        public let fragmentTime: Double?
        /// To include key-length-value metadata in this output: Set KLV metadata insertion to Passthrough. MediaConvert reads KLV metadata present in your input and passes it through to the output transport stream. To exclude this KLV metadata: Set KLV metadata insertion to None or leave blank.
        public let klvMetadata: M2tsKlvMetadata?
        /// Specify the maximum time, in milliseconds, between Program Clock References (PCRs) inserted into the transport stream.
        public let maxPcrInterval: Int?
        /// When set, enforces that Encoder Boundary Points do not come within the specified time interval of each other by looking ahead at input video. If another EBP is going to come in within the specified time interval, the current EBP is not emitted, and the segment is "stretched" to the next marker. The lookahead value does not add latency to the system. The Live Event must be configured elsewhere to create sufficient latency to make the lookahead accurate.
        public let minEbpInterval: Int?
        /// If INSERT, Nielsen inaudible tones for media tracking will be detected in the input audio and an equivalent ID3 tag will be inserted in the output.
        public let nielsenId3: M2tsNielsenId3?
        /// Value in bits per second of extra null packets to insert into the transport stream. This can be used if a downstream encryption system requires periodic null packets.
        public let nullPacketBitrate: Double?
        /// The number of milliseconds between instances of this table in the output transport stream.
        public let patInterval: Int?
        /// When set to PCR_EVERY_PES_PACKET, a Program Clock Reference value is inserted for every Packetized Elementary Stream (PES) header. This is effective only when the PCR PID is the same as the video or audio elementary stream.
        public let pcrControl: M2tsPcrControl?
        /// Specify the packet identifier (PID) for the program clock reference (PCR) in this output. If you do not specify a value, the service will use the value for Video PID.
        public let pcrPid: Int?
        /// Specify the number of milliseconds between instances of the program map table (PMT) in the output transport stream.
        public let pmtInterval: Int?
        /// Specify the packet identifier (PID) for the program map table (PMT) itself. Default is 480.
        public let pmtPid: Int?
        /// Specify whether MediaConvert automatically attempts to prevent decoder buffer underflows in your transport stream output. Use if you are seeing decoder buffer underflows in your output and are unable to increase your transport stream's bitrate. For most workflows: We recommend that you keep the default value, Disabled. To prevent decoder buffer underflows in your output, when possible: Choose Enabled. Note that if MediaConvert prevents a decoder buffer underflow in your output, output video quality is reduced and your job will take longer to complete.
        public let preventBufferUnderflow: M2tsPreventBufferUnderflow?
        /// Specify the packet identifier (PID) of the private metadata stream. Default is 503.
        public let privateMetadataPid: Int?
        /// Use Program number to specify the program number used in the program map table (PMT) for this output. Default is 1. Program numbers and program map tables are parts of MPEG-2 transport stream containers, used for organizing data.
        public let programNumber: Int?
        /// Manually specify the initial PTS offset, in seconds, when you set PTS offset to Seconds. Enter an integer from 0 to 3600. Leave blank to keep the default value 2.
        public let ptsOffset: Int?
        /// Specify the initial presentation timestamp (PTS) offset for your transport stream output. To let MediaConvert automatically determine the initial PTS offset: Keep the default value, Auto. We recommend that you choose Auto for the widest player compatibility. The initial PTS will be at least two seconds and vary depending on your output's bitrate, HRD buffer size and HRD buffer initial fill percentage. To manually specify an initial PTS offset: Choose Seconds or Milliseconds. Then specify the number of seconds or milliseconds with PTS offset.
        public let ptsOffsetMode: TsPtsOffset?
        /// When set to CBR, inserts null packets into transport stream to fill specified bitrate. When set to VBR, the bitrate setting acts as the maximum bitrate, but the output will not be padded up to that bitrate.
        public let rateMode: M2tsRateMode?
        /// Include this in your job settings to put SCTE-35 markers in your HLS and transport stream outputs at the insertion points that you specify in an ESAM XML document. Provide the document in the setting SCC XML.
        public let scte35Esam: M2tsScte35Esam?
        /// Specify the packet identifier (PID) of the SCTE-35 stream in the transport stream.
        public let scte35Pid: Int?
        /// For SCTE-35 markers from your input-- Choose Passthrough if you want SCTE-35 markers that appear in your input to also appear in this output. Choose None if you don't want SCTE-35 markers in this output. For SCTE-35 markers from an ESAM XML document-- Choose None. Also provide the ESAM XML as a string in the setting Signal processing notification XML. Also enable ESAM SCTE-35 (include the property scte35Esam).
        public let scte35Source: M2tsScte35Source?
        /// Inserts segmentation markers at each segmentation_time period. rai_segstart sets the Random Access Indicator bit in the adaptation field. rai_adapt sets the RAI bit and adds the current timecode in the private data bytes. psi_segstart inserts PAT and PMT tables at the start of segments. ebp adds Encoder Boundary Point information to the adaptation field as per OpenCable specification OC-SP-EBP-I01-130118. ebp_legacy adds Encoder Boundary Point information to the adaptation field using a legacy proprietary format.
        public let segmentationMarkers: M2tsSegmentationMarkers?
        /// The segmentation style parameter controls how segmentation markers are inserted into the transport stream. With avails, it is possible that segments may be truncated, which can influence where future segmentation markers are inserted. When a segmentation style of "reset_cadence" is selected and a segment is truncated due to an avail, we will reset the segmentation cadence. This means the subsequent segment will have a duration of of $segmentation_time seconds. When a segmentation style of "maintain_cadence" is selected and a segment is truncated due to an avail, we will not reset the segmentation cadence. This means the subsequent segment will likely be truncated as well. However, all segments after that will have a duration of $segmentation_time seconds. Note that EBP lookahead is a slight exception to this rule.
        public let segmentationStyle: M2tsSegmentationStyle?
        /// Specify the length, in seconds, of each segment. Required unless markers is set to _none_.
        public let segmentationTime: Double?
        /// Packet Identifier (PID) of the ID3 metadata stream in the transport stream.
        public let timedMetadataPid: Int?
        /// Specify the ID for the transport stream itself in the program map table for this output. Transport stream IDs and program map tables are parts of MPEG-2 transport stream containers, used for organizing data.
        public let transportStreamId: Int?
        /// Specify the packet identifier (PID) of the elementary video stream in the transport stream.
        public let videoPid: Int?

        @inlinable
        public init(audioBufferModel: M2tsAudioBufferModel? = nil, audioDuration: M2tsAudioDuration? = nil, audioFramesPerPes: Int? = nil, audioPids: [Int]? = nil, audioPtsOffsetDelta: Int? = nil, bitrate: Int? = nil, bufferModel: M2tsBufferModel? = nil, dataPTSControl: M2tsDataPtsControl? = nil, dvbNitSettings: DvbNitSettings? = nil, dvbSdtSettings: DvbSdtSettings? = nil, dvbSubPids: [Int]? = nil, dvbTdtSettings: DvbTdtSettings? = nil, dvbTeletextPid: Int? = nil, ebpAudioInterval: M2tsEbpAudioInterval? = nil, ebpPlacement: M2tsEbpPlacement? = nil, esRateInPes: M2tsEsRateInPes? = nil, forceTsVideoEbpOrder: M2tsForceTsVideoEbpOrder? = nil, fragmentTime: Double? = nil, klvMetadata: M2tsKlvMetadata? = nil, maxPcrInterval: Int? = nil, minEbpInterval: Int? = nil, nielsenId3: M2tsNielsenId3? = nil, nullPacketBitrate: Double? = nil, patInterval: Int? = nil, pcrControl: M2tsPcrControl? = nil, pcrPid: Int? = nil, pmtInterval: Int? = nil, pmtPid: Int? = nil, preventBufferUnderflow: M2tsPreventBufferUnderflow? = nil, privateMetadataPid: Int? = nil, programNumber: Int? = nil, ptsOffset: Int? = nil, ptsOffsetMode: TsPtsOffset? = nil, rateMode: M2tsRateMode? = nil, scte35Esam: M2tsScte35Esam? = nil, scte35Pid: Int? = nil, scte35Source: M2tsScte35Source? = nil, segmentationMarkers: M2tsSegmentationMarkers? = nil, segmentationStyle: M2tsSegmentationStyle? = nil, segmentationTime: Double? = nil, timedMetadataPid: Int? = nil, transportStreamId: Int? = nil, videoPid: Int? = nil) {
            self.audioBufferModel = audioBufferModel
            self.audioDuration = audioDuration
            self.audioFramesPerPes = audioFramesPerPes
            self.audioPids = audioPids
            self.audioPtsOffsetDelta = audioPtsOffsetDelta
            self.bitrate = bitrate
            self.bufferModel = bufferModel
            self.dataPTSControl = dataPTSControl
            self.dvbNitSettings = dvbNitSettings
            self.dvbSdtSettings = dvbSdtSettings
            self.dvbSubPids = dvbSubPids
            self.dvbTdtSettings = dvbTdtSettings
            self.dvbTeletextPid = dvbTeletextPid
            self.ebpAudioInterval = ebpAudioInterval
            self.ebpPlacement = ebpPlacement
            self.esRateInPes = esRateInPes
            self.forceTsVideoEbpOrder = forceTsVideoEbpOrder
            self.fragmentTime = fragmentTime
            self.klvMetadata = klvMetadata
            self.maxPcrInterval = maxPcrInterval
            self.minEbpInterval = minEbpInterval
            self.nielsenId3 = nielsenId3
            self.nullPacketBitrate = nullPacketBitrate
            self.patInterval = patInterval
            self.pcrControl = pcrControl
            self.pcrPid = pcrPid
            self.pmtInterval = pmtInterval
            self.pmtPid = pmtPid
            self.preventBufferUnderflow = preventBufferUnderflow
            self.privateMetadataPid = privateMetadataPid
            self.programNumber = programNumber
            self.ptsOffset = ptsOffset
            self.ptsOffsetMode = ptsOffsetMode
            self.rateMode = rateMode
            self.scte35Esam = scte35Esam
            self.scte35Pid = scte35Pid
            self.scte35Source = scte35Source
            self.segmentationMarkers = segmentationMarkers
            self.segmentationStyle = segmentationStyle
            self.segmentationTime = segmentationTime
            self.timedMetadataPid = timedMetadataPid
            self.transportStreamId = transportStreamId
            self.videoPid = videoPid
        }

        public func validate(name: String) throws {
            try self.validate(self.audioFramesPerPes, name: "audioFramesPerPes", parent: name, max: 2147483647)
            try self.validate(self.audioFramesPerPes, name: "audioFramesPerPes", parent: name, min: 0)
            try self.audioPids?.forEach {
                try validate($0, name: "audioPids[]", parent: name, max: 8182)
                try validate($0, name: "audioPids[]", parent: name, min: 32)
            }
            try self.validate(self.audioPtsOffsetDelta, name: "audioPtsOffsetDelta", parent: name, max: 10000)
            try self.validate(self.audioPtsOffsetDelta, name: "audioPtsOffsetDelta", parent: name, min: -10000)
            try self.validate(self.bitrate, name: "bitrate", parent: name, max: 2147483647)
            try self.validate(self.bitrate, name: "bitrate", parent: name, min: 0)
            try self.dvbNitSettings?.validate(name: "\(name).dvbNitSettings")
            try self.dvbSdtSettings?.validate(name: "\(name).dvbSdtSettings")
            try self.dvbSubPids?.forEach {
                try validate($0, name: "dvbSubPids[]", parent: name, max: 8182)
                try validate($0, name: "dvbSubPids[]", parent: name, min: 32)
            }
            try self.dvbTdtSettings?.validate(name: "\(name).dvbTdtSettings")
            try self.validate(self.dvbTeletextPid, name: "dvbTeletextPid", parent: name, max: 8182)
            try self.validate(self.dvbTeletextPid, name: "dvbTeletextPid", parent: name, min: 32)
            try self.validate(self.maxPcrInterval, name: "maxPcrInterval", parent: name, max: 500)
            try self.validate(self.maxPcrInterval, name: "maxPcrInterval", parent: name, min: 0)
            try self.validate(self.minEbpInterval, name: "minEbpInterval", parent: name, max: 10000)
            try self.validate(self.minEbpInterval, name: "minEbpInterval", parent: name, min: 0)
            try self.validate(self.patInterval, name: "patInterval", parent: name, max: 1000)
            try self.validate(self.patInterval, name: "patInterval", parent: name, min: 0)
            try self.validate(self.pcrPid, name: "pcrPid", parent: name, max: 8182)
            try self.validate(self.pcrPid, name: "pcrPid", parent: name, min: 32)
            try self.validate(self.pmtInterval, name: "pmtInterval", parent: name, max: 1000)
            try self.validate(self.pmtInterval, name: "pmtInterval", parent: name, min: 0)
            try self.validate(self.pmtPid, name: "pmtPid", parent: name, max: 8182)
            try self.validate(self.pmtPid, name: "pmtPid", parent: name, min: 32)
            try self.validate(self.privateMetadataPid, name: "privateMetadataPid", parent: name, max: 8182)
            try self.validate(self.privateMetadataPid, name: "privateMetadataPid", parent: name, min: 32)
            try self.validate(self.programNumber, name: "programNumber", parent: name, max: 65535)
            try self.validate(self.programNumber, name: "programNumber", parent: name, min: 0)
            try self.validate(self.ptsOffset, name: "ptsOffset", parent: name, max: 3600)
            try self.validate(self.ptsOffset, name: "ptsOffset", parent: name, min: 0)
            try self.scte35Esam?.validate(name: "\(name).scte35Esam")
            try self.validate(self.scte35Pid, name: "scte35Pid", parent: name, max: 8182)
            try self.validate(self.scte35Pid, name: "scte35Pid", parent: name, min: 32)
            try self.validate(self.timedMetadataPid, name: "timedMetadataPid", parent: name, max: 8182)
            try self.validate(self.timedMetadataPid, name: "timedMetadataPid", parent: name, min: 32)
            try self.validate(self.transportStreamId, name: "transportStreamId", parent: name, max: 65535)
            try self.validate(self.transportStreamId, name: "transportStreamId", parent: name, min: 0)
            try self.validate(self.videoPid, name: "videoPid", parent: name, max: 8182)
            try self.validate(self.videoPid, name: "videoPid", parent: name, min: 32)
        }

        private enum CodingKeys: String, CodingKey {
            case audioBufferModel = "audioBufferModel"
            case audioDuration = "audioDuration"
            case audioFramesPerPes = "audioFramesPerPes"
            case audioPids = "audioPids"
            case audioPtsOffsetDelta = "audioPtsOffsetDelta"
            case bitrate = "bitrate"
            case bufferModel = "bufferModel"
            case dataPTSControl = "dataPTSControl"
            case dvbNitSettings = "dvbNitSettings"
            case dvbSdtSettings = "dvbSdtSettings"
            case dvbSubPids = "dvbSubPids"
            case dvbTdtSettings = "dvbTdtSettings"
            case dvbTeletextPid = "dvbTeletextPid"
            case ebpAudioInterval = "ebpAudioInterval"
            case ebpPlacement = "ebpPlacement"
            case esRateInPes = "esRateInPes"
            case forceTsVideoEbpOrder = "forceTsVideoEbpOrder"
            case fragmentTime = "fragmentTime"
            case klvMetadata = "klvMetadata"
            case maxPcrInterval = "maxPcrInterval"
            case minEbpInterval = "minEbpInterval"
            case nielsenId3 = "nielsenId3"
            case nullPacketBitrate = "nullPacketBitrate"
            case patInterval = "patInterval"
            case pcrControl = "pcrControl"
            case pcrPid = "pcrPid"
            case pmtInterval = "pmtInterval"
            case pmtPid = "pmtPid"
            case preventBufferUnderflow = "preventBufferUnderflow"
            case privateMetadataPid = "privateMetadataPid"
            case programNumber = "programNumber"
            case ptsOffset = "ptsOffset"
            case ptsOffsetMode = "ptsOffsetMode"
            case rateMode = "rateMode"
            case scte35Esam = "scte35Esam"
            case scte35Pid = "scte35Pid"
            case scte35Source = "scte35Source"
            case segmentationMarkers = "segmentationMarkers"
            case segmentationStyle = "segmentationStyle"
            case segmentationTime = "segmentationTime"
            case timedMetadataPid = "timedMetadataPid"
            case transportStreamId = "transportStreamId"
            case videoPid = "videoPid"
        }
    }

    public struct M3u8Settings: AWSEncodableShape & AWSDecodableShape {
        /// Specify this setting only when your output will be consumed by a downstream repackaging workflow that is sensitive to very small duration differences between video and audio. For this situation, choose Match video duration. In all other cases, keep the default value, Default codec duration. When you choose Match video duration, MediaConvert pads the output audio streams with silence or trims them to ensure that the total duration of each audio stream is at least as long as the total duration of the video stream. After padding or trimming, the audio stream duration is no more than one frame longer than the video stream. MediaConvert applies audio padding or trimming only to the end of the last segment of the output. For unsegmented outputs, MediaConvert adds padding only to the end of the file. When you keep the default value, any minor discrepancies between audio and video duration will depend on your output audio codec.
        public let audioDuration: M3u8AudioDuration?
        /// The number of audio frames to insert for each PES packet.
        public let audioFramesPerPes: Int?
        /// Packet Identifier (PID) of the elementary audio stream(s) in the transport stream. Multiple values are accepted, and can be entered in ranges and/or by comma separation.
        public let audioPids: [Int]?
        /// Manually specify the difference in PTS offset that will be applied to the audio track, in seconds or milliseconds, when you set PTS offset to Seconds or Milliseconds. Enter an integer from -10000 to 10000. Leave blank to keep the default value 0.
        public let audioPtsOffsetDelta: Int?
        /// If you select ALIGN_TO_VIDEO, MediaConvert writes captions and data packets with Presentation Timestamp (PTS) values greater than or equal to the first video packet PTS (MediaConvert drops captions and data packets with lesser PTS values). Keep the default value AUTO to allow all PTS values.
        public let dataPTSControl: M3u8DataPtsControl?
        /// Specify the maximum time, in milliseconds, between Program Clock References (PCRs) inserted into the transport stream.
        public let maxPcrInterval: Int?
        /// If INSERT, Nielsen inaudible tones for media tracking will be detected in the input audio and an equivalent ID3 tag will be inserted in the output.
        public let nielsenId3: M3u8NielsenId3?
        /// The number of milliseconds between instances of this table in the output transport stream.
        public let patInterval: Int?
        /// When set to PCR_EVERY_PES_PACKET a Program Clock Reference value is inserted for every Packetized Elementary Stream (PES) header. This parameter is effective only when the PCR PID is the same as the video or audio elementary stream.
        public let pcrControl: M3u8PcrControl?
        /// Packet Identifier (PID) of the Program Clock Reference (PCR) in the transport stream. When no value is given, the encoder will assign the same value as the Video PID.
        public let pcrPid: Int?
        /// The number of milliseconds between instances of this table in the output transport stream.
        public let pmtInterval: Int?
        /// Packet Identifier (PID) for the Program Map Table (PMT) in the transport stream.
        public let pmtPid: Int?
        /// Packet Identifier (PID) of the private metadata stream in the transport stream.
        public let privateMetadataPid: Int?
        /// The value of the program number field in the Program Map Table.
        public let programNumber: Int?
        /// Manually specify the initial PTS offset, in seconds, when you set PTS offset to Seconds. Enter an integer from 0 to 3600. Leave blank to keep the default value 2.
        public let ptsOffset: Int?
        /// Specify the initial presentation timestamp (PTS) offset for your transport stream output. To let MediaConvert automatically determine the initial PTS offset: Keep the default value, Auto. We recommend that you choose Auto for the widest player compatibility. The initial PTS will be at least two seconds and vary depending on your output's bitrate, HRD buffer size and HRD buffer initial fill percentage. To manually specify an initial PTS offset: Choose Seconds or Milliseconds. Then specify the number of seconds or milliseconds with PTS offset.
        public let ptsOffsetMode: TsPtsOffset?
        /// Packet Identifier (PID) of the SCTE-35 stream in the transport stream.
        public let scte35Pid: Int?
        /// For SCTE-35 markers from your input-- Choose Passthrough if you want SCTE-35 markers that appear in your input to also appear in this output. Choose None if you don't want SCTE-35 markers in this output. For SCTE-35 markers from an ESAM XML document-- Choose None if you don't want manifest conditioning. Choose Passthrough and choose Ad markers if you do want manifest conditioning. In both cases, also provide the ESAM XML as a string in the setting Signal processing notification XML.
        public let scte35Source: M3u8Scte35Source?
        /// Set ID3 metadata to Passthrough to include ID3 metadata in this output. This includes ID3 metadata from the following features: ID3 timestamp period, and Custom ID3 metadata inserter. To exclude this ID3 metadata in this output: set ID3 metadata to None or leave blank.
        public let timedMetadata: TimedMetadata?
        /// Packet Identifier (PID) of the ID3 metadata stream in the transport stream.
        public let timedMetadataPid: Int?
        /// The value of the transport stream ID field in the Program Map Table.
        public let transportStreamId: Int?
        /// Packet Identifier (PID) of the elementary video stream in the transport stream.
        public let videoPid: Int?

        @inlinable
        public init(audioDuration: M3u8AudioDuration? = nil, audioFramesPerPes: Int? = nil, audioPids: [Int]? = nil, audioPtsOffsetDelta: Int? = nil, dataPTSControl: M3u8DataPtsControl? = nil, maxPcrInterval: Int? = nil, nielsenId3: M3u8NielsenId3? = nil, patInterval: Int? = nil, pcrControl: M3u8PcrControl? = nil, pcrPid: Int? = nil, pmtInterval: Int? = nil, pmtPid: Int? = nil, privateMetadataPid: Int? = nil, programNumber: Int? = nil, ptsOffset: Int? = nil, ptsOffsetMode: TsPtsOffset? = nil, scte35Pid: Int? = nil, scte35Source: M3u8Scte35Source? = nil, timedMetadata: TimedMetadata? = nil, timedMetadataPid: Int? = nil, transportStreamId: Int? = nil, videoPid: Int? = nil) {
            self.audioDuration = audioDuration
            self.audioFramesPerPes = audioFramesPerPes
            self.audioPids = audioPids
            self.audioPtsOffsetDelta = audioPtsOffsetDelta
            self.dataPTSControl = dataPTSControl
            self.maxPcrInterval = maxPcrInterval
            self.nielsenId3 = nielsenId3
            self.patInterval = patInterval
            self.pcrControl = pcrControl
            self.pcrPid = pcrPid
            self.pmtInterval = pmtInterval
            self.pmtPid = pmtPid
            self.privateMetadataPid = privateMetadataPid
            self.programNumber = programNumber
            self.ptsOffset = ptsOffset
            self.ptsOffsetMode = ptsOffsetMode
            self.scte35Pid = scte35Pid
            self.scte35Source = scte35Source
            self.timedMetadata = timedMetadata
            self.timedMetadataPid = timedMetadataPid
            self.transportStreamId = transportStreamId
            self.videoPid = videoPid
        }

        public func validate(name: String) throws {
            try self.validate(self.audioFramesPerPes, name: "audioFramesPerPes", parent: name, max: 2147483647)
            try self.validate(self.audioFramesPerPes, name: "audioFramesPerPes", parent: name, min: 0)
            try self.audioPids?.forEach {
                try validate($0, name: "audioPids[]", parent: name, max: 8182)
                try validate($0, name: "audioPids[]", parent: name, min: 32)
            }
            try self.validate(self.audioPtsOffsetDelta, name: "audioPtsOffsetDelta", parent: name, max: 10000)
            try self.validate(self.audioPtsOffsetDelta, name: "audioPtsOffsetDelta", parent: name, min: -10000)
            try self.validate(self.maxPcrInterval, name: "maxPcrInterval", parent: name, max: 500)
            try self.validate(self.maxPcrInterval, name: "maxPcrInterval", parent: name, min: 0)
            try self.validate(self.patInterval, name: "patInterval", parent: name, max: 1000)
            try self.validate(self.patInterval, name: "patInterval", parent: name, min: 0)
            try self.validate(self.pcrPid, name: "pcrPid", parent: name, max: 8182)
            try self.validate(self.pcrPid, name: "pcrPid", parent: name, min: 32)
            try self.validate(self.pmtInterval, name: "pmtInterval", parent: name, max: 1000)
            try self.validate(self.pmtInterval, name: "pmtInterval", parent: name, min: 0)
            try self.validate(self.pmtPid, name: "pmtPid", parent: name, max: 8182)
            try self.validate(self.pmtPid, name: "pmtPid", parent: name, min: 32)
            try self.validate(self.privateMetadataPid, name: "privateMetadataPid", parent: name, max: 8182)
            try self.validate(self.privateMetadataPid, name: "privateMetadataPid", parent: name, min: 32)
            try self.validate(self.programNumber, name: "programNumber", parent: name, max: 65535)
            try self.validate(self.programNumber, name: "programNumber", parent: name, min: 0)
            try self.validate(self.ptsOffset, name: "ptsOffset", parent: name, max: 3600)
            try self.validate(self.ptsOffset, name: "ptsOffset", parent: name, min: 0)
            try self.validate(self.scte35Pid, name: "scte35Pid", parent: name, max: 8182)
            try self.validate(self.scte35Pid, name: "scte35Pid", parent: name, min: 32)
            try self.validate(self.timedMetadataPid, name: "timedMetadataPid", parent: name, max: 8182)
            try self.validate(self.timedMetadataPid, name: "timedMetadataPid", parent: name, min: 32)
            try self.validate(self.transportStreamId, name: "transportStreamId", parent: name, max: 65535)
            try self.validate(self.transportStreamId, name: "transportStreamId", parent: name, min: 0)
            try self.validate(self.videoPid, name: "videoPid", parent: name, max: 8182)
            try self.validate(self.videoPid, name: "videoPid", parent: name, min: 32)
        }

        private enum CodingKeys: String, CodingKey {
            case audioDuration = "audioDuration"
            case audioFramesPerPes = "audioFramesPerPes"
            case audioPids = "audioPids"
            case audioPtsOffsetDelta = "audioPtsOffsetDelta"
            case dataPTSControl = "dataPTSControl"
            case maxPcrInterval = "maxPcrInterval"
            case nielsenId3 = "nielsenId3"
            case patInterval = "patInterval"
            case pcrControl = "pcrControl"
            case pcrPid = "pcrPid"
            case pmtInterval = "pmtInterval"
            case pmtPid = "pmtPid"
            case privateMetadataPid = "privateMetadataPid"
            case programNumber = "programNumber"
            case ptsOffset = "ptsOffset"
            case ptsOffsetMode = "ptsOffsetMode"
            case scte35Pid = "scte35Pid"
            case scte35Source = "scte35Source"
            case timedMetadata = "timedMetadata"
            case timedMetadataPid = "timedMetadataPid"
            case transportStreamId = "transportStreamId"
            case videoPid = "videoPid"
        }
    }

    public struct Metadata: AWSDecodableShape {
        /// The entity tag (ETag) of the file.
        public let eTag: String?
        /// The size of the media file, in bytes.
        public let fileSize: Int64?
        /// The last modification timestamp of the media file, in Unix time.
        @OptionalCustomCoding<UnixEpochDateCoder>
        public var lastModified: Date?
        /// The MIME type of the media file.
        public let mimeType: String?

        @inlinable
        public init(eTag: String? = nil, fileSize: Int64? = nil, lastModified: Date? = nil, mimeType: String? = nil) {
            self.eTag = eTag
            self.fileSize = fileSize
            self.lastModified = lastModified
            self.mimeType = mimeType
        }

        private enum CodingKeys: String, CodingKey {
            case eTag = "eTag"
            case fileSize = "fileSize"
            case lastModified = "lastModified"
            case mimeType = "mimeType"
        }
    }

    public struct MinBottomRenditionSize: AWSEncodableShape & AWSDecodableShape {
        /// Use Height to define the video resolution height, in pixels, for this rule.
        public let height: Int?
        /// Use Width to define the video resolution width, in pixels, for this rule.
        public let width: Int?

        @inlinable
        public init(height: Int? = nil, width: Int? = nil) {
            self.height = height
            self.width = width
        }

        public func validate(name: String) throws {
            try self.validate(self.height, name: "height", parent: name, max: 8192)
            try self.validate(self.height, name: "height", parent: name, min: 32)
            try self.validate(self.width, name: "width", parent: name, max: 8192)
            try self.validate(self.width, name: "width", parent: name, min: 32)
        }

        private enum CodingKeys: String, CodingKey {
            case height = "height"
            case width = "width"
        }
    }

    public struct MinTopRenditionSize: AWSEncodableShape & AWSDecodableShape {
        /// Use Height to define the video resolution height, in pixels, for this rule.
        public let height: Int?
        /// Use Width to define the video resolution width, in pixels, for this rule.
        public let width: Int?

        @inlinable
        public init(height: Int? = nil, width: Int? = nil) {
            self.height = height
            self.width = width
        }

        public func validate(name: String) throws {
            try self.validate(self.height, name: "height", parent: name, max: 8192)
            try self.validate(self.height, name: "height", parent: name, min: 32)
            try self.validate(self.width, name: "width", parent: name, max: 8192)
            try self.validate(self.width, name: "width", parent: name, min: 32)
        }

        private enum CodingKeys: String, CodingKey {
            case height = "height"
            case width = "width"
        }
    }

    public struct MotionImageInserter: AWSEncodableShape & AWSDecodableShape {
        /// If your motion graphic asset is a .mov file, keep this setting unspecified. If your motion graphic asset is a series of .png files, specify the frame rate of the overlay in frames per second, as a fraction. For example, specify 24 fps as 24/1. Make sure that the number of images in your series matches the frame rate and your intended overlay duration. For example, if you want a 30-second overlay at 30 fps, you should have 900 .png images. This overlay frame rate doesn't need to match the frame rate of the underlying video.
        public let framerate: MotionImageInsertionFramerate?
        /// Specify the .mov file or series of .png files that you want to overlay on your video. For .png files, provide the file name of the first file in the series. Make sure that the names of the .png files end with sequential numbers that specify the order that they are played in. For example, overlay_000.png, overlay_001.png, overlay_002.png, and so on. The sequence must start at zero, and each image file name must have the same number of digits. Pad your initial file names with enough zeros to complete the sequence. For example, if the first image is overlay_0.png, there can be only 10 images in the sequence, with the last image being overlay_9.png. But if the first image is overlay_00.png, there can be 100 images in the sequence.
        public let input: String?
        /// Choose the type of motion graphic asset that you are providing for your overlay. You can choose either a .mov file or a series of .png files.
        public let insertionMode: MotionImageInsertionMode?
        /// Use Offset to specify the placement of your motion graphic overlay on the video frame. Specify in pixels, from the upper-left corner of the frame. If you don't specify an offset, the service scales your overlay to the full size of the frame. Otherwise, the service inserts the overlay at its native resolution and scales the size up or down with any video scaling.
        public let offset: MotionImageInsertionOffset?
        /// Specify whether your motion graphic overlay repeats on a loop or plays only once.
        public let playback: MotionImagePlayback?
        /// Specify when the motion overlay begins. Use timecode format (HH:MM:SS:FF or HH:MM:SS;FF). Make sure that the timecode you provide here takes into account how you have set up your timecode configuration under both job settings and input settings. The simplest way to do that is to set both to start at 0. If you need to set up your job to follow timecodes embedded in your source that don't start at zero, make sure that you specify a start time that is after the first embedded timecode. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/setting-up-timecode.html
        public let startTime: String?

        @inlinable
        public init(framerate: MotionImageInsertionFramerate? = nil, input: String? = nil, insertionMode: MotionImageInsertionMode? = nil, offset: MotionImageInsertionOffset? = nil, playback: MotionImagePlayback? = nil, startTime: String? = nil) {
            self.framerate = framerate
            self.input = input
            self.insertionMode = insertionMode
            self.offset = offset
            self.playback = playback
            self.startTime = startTime
        }

        public func validate(name: String) throws {
            try self.framerate?.validate(name: "\(name).framerate")
            try self.validate(self.input, name: "input", parent: name, min: 14)
            try self.validate(self.input, name: "input", parent: name, pattern: "^((s3://(.*)(\\.mov|[0-9]+\\.png))|(https?://(.*)(\\.mov|[0-9]+\\.png)(\\?([^&=]+=[^&]+&)*[^&=]+=[^&]+)?))$")
            try self.offset?.validate(name: "\(name).offset")
            try self.validate(self.startTime, name: "startTime", parent: name, max: 11)
            try self.validate(self.startTime, name: "startTime", parent: name, min: 11)
            try self.validate(self.startTime, name: "startTime", parent: name, pattern: "^((([0-1]\\d)|(2[0-3]))(:[0-5]\\d){2}([:;][0-5]\\d))$")
        }

        private enum CodingKeys: String, CodingKey {
            case framerate = "framerate"
            case input = "input"
            case insertionMode = "insertionMode"
            case offset = "offset"
            case playback = "playback"
            case startTime = "startTime"
        }
    }

    public struct MotionImageInsertionFramerate: AWSEncodableShape & AWSDecodableShape {
        /// The bottom of the fraction that expresses your overlay frame rate. For example, if your frame rate is 24 fps, set this value to 1.
        public let framerateDenominator: Int?
        /// The top of the fraction that expresses your overlay frame rate. For example, if your frame rate is 24 fps, set this value to 24.
        public let framerateNumerator: Int?

        @inlinable
        public init(framerateDenominator: Int? = nil, framerateNumerator: Int? = nil) {
            self.framerateDenominator = framerateDenominator
            self.framerateNumerator = framerateNumerator
        }

        public func validate(name: String) throws {
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, max: 17895697)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, min: 1)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, max: 2147483640)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case framerateDenominator = "framerateDenominator"
            case framerateNumerator = "framerateNumerator"
        }
    }

    public struct MotionImageInsertionOffset: AWSEncodableShape & AWSDecodableShape {
        /// Set the distance, in pixels, between the overlay and the left edge of the video frame.
        public let imageX: Int?
        /// Set the distance, in pixels, between the overlay and the top edge of the video frame.
        public let imageY: Int?

        @inlinable
        public init(imageX: Int? = nil, imageY: Int? = nil) {
            self.imageX = imageX
            self.imageY = imageY
        }

        public func validate(name: String) throws {
            try self.validate(self.imageX, name: "imageX", parent: name, max: 2147483647)
            try self.validate(self.imageX, name: "imageX", parent: name, min: 0)
            try self.validate(self.imageY, name: "imageY", parent: name, max: 2147483647)
            try self.validate(self.imageY, name: "imageY", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case imageX = "imageX"
            case imageY = "imageY"
        }
    }

    public struct MovSettings: AWSEncodableShape & AWSDecodableShape {
        /// When enabled, include 'clap' atom if appropriate for the video output settings.
        public let clapAtom: MovClapAtom?
        /// When enabled, file composition times will start at zero, composition times in the 'ctts' (composition time to sample) box for B-frames will be negative, and a 'cslg' (composition shift least greatest) box will be included per 14496-1 amendment 1. This improves compatibility with Apple players and tools.
        public let cslgAtom: MovCslgAtom?
        /// When set to XDCAM, writes MPEG2 video streams into the QuickTime file using XDCAM fourcc codes. This increases compatibility with Apple editors and players, but may decrease compatibility with other players. Only applicable when the video codec is MPEG2.
        public let mpeg2FourCCControl: MovMpeg2FourCCControl?
        /// Unless you need Omneon compatibility: Keep the default value, None. To make this output compatible with Omneon: Choose Omneon. When you do, MediaConvert increases the length of the 'elst' edit list atom. Note that this might cause file rejections when a recipient of the output file doesn't expect this extra padding.
        public let paddingControl: MovPaddingControl?
        /// Always keep the default value (SELF_CONTAINED) for this setting.
        public let reference: MovReference?

        @inlinable
        public init(clapAtom: MovClapAtom? = nil, cslgAtom: MovCslgAtom? = nil, mpeg2FourCCControl: MovMpeg2FourCCControl? = nil, paddingControl: MovPaddingControl? = nil, reference: MovReference? = nil) {
            self.clapAtom = clapAtom
            self.cslgAtom = cslgAtom
            self.mpeg2FourCCControl = mpeg2FourCCControl
            self.paddingControl = paddingControl
            self.reference = reference
        }

        private enum CodingKeys: String, CodingKey {
            case clapAtom = "clapAtom"
            case cslgAtom = "cslgAtom"
            case mpeg2FourCCControl = "mpeg2FourCCControl"
            case paddingControl = "paddingControl"
            case reference = "reference"
        }
    }

    public struct Mp2Settings: AWSEncodableShape & AWSDecodableShape {
        /// Specify the average bitrate in bits per second.
        public let bitrate: Int?
        /// Set Channels to specify the number of channels in this output audio track. Choosing Mono in will give you 1 output channel; choosing Stereo will give you 2. In the API, valid values are 1 and 2.
        public let channels: Int?
        /// Sample rate in Hz.
        public let sampleRate: Int?

        @inlinable
        public init(bitrate: Int? = nil, channels: Int? = nil, sampleRate: Int? = nil) {
            self.bitrate = bitrate
            self.channels = channels
            self.sampleRate = sampleRate
        }

        public func validate(name: String) throws {
            try self.validate(self.bitrate, name: "bitrate", parent: name, max: 384000)
            try self.validate(self.bitrate, name: "bitrate", parent: name, min: 32000)
            try self.validate(self.channels, name: "channels", parent: name, max: 2)
            try self.validate(self.channels, name: "channels", parent: name, min: 1)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, max: 48000)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, min: 32000)
        }

        private enum CodingKeys: String, CodingKey {
            case bitrate = "bitrate"
            case channels = "channels"
            case sampleRate = "sampleRate"
        }
    }

    public struct Mp3Settings: AWSEncodableShape & AWSDecodableShape {
        /// Specify the average bitrate in bits per second.
        public let bitrate: Int?
        /// Specify the number of channels in this output audio track. Choosing Mono gives you 1 output channel; choosing Stereo gives you 2. In the API, valid values are 1 and 2.
        public let channels: Int?
        /// Specify whether the service encodes this MP3 audio output with a constant bitrate (CBR) or a variable bitrate (VBR).
        public let rateControlMode: Mp3RateControlMode?
        /// Sample rate in Hz.
        public let sampleRate: Int?
        /// Required when you set Bitrate control mode to VBR. Specify the audio quality of this MP3 output from 0 (highest quality) to 9 (lowest quality).
        public let vbrQuality: Int?

        @inlinable
        public init(bitrate: Int? = nil, channels: Int? = nil, rateControlMode: Mp3RateControlMode? = nil, sampleRate: Int? = nil, vbrQuality: Int? = nil) {
            self.bitrate = bitrate
            self.channels = channels
            self.rateControlMode = rateControlMode
            self.sampleRate = sampleRate
            self.vbrQuality = vbrQuality
        }

        public func validate(name: String) throws {
            try self.validate(self.bitrate, name: "bitrate", parent: name, max: 320000)
            try self.validate(self.bitrate, name: "bitrate", parent: name, min: 16000)
            try self.validate(self.channels, name: "channels", parent: name, max: 2)
            try self.validate(self.channels, name: "channels", parent: name, min: 1)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, max: 48000)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, min: 22050)
            try self.validate(self.vbrQuality, name: "vbrQuality", parent: name, max: 9)
            try self.validate(self.vbrQuality, name: "vbrQuality", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case bitrate = "bitrate"
            case channels = "channels"
            case rateControlMode = "rateControlMode"
            case sampleRate = "sampleRate"
            case vbrQuality = "vbrQuality"
        }
    }

    public struct Mp4Settings: AWSEncodableShape & AWSDecodableShape {
        /// Specify this setting only when your output will be consumed by a downstream repackaging workflow that is sensitive to very small duration differences between video and audio. For this situation, choose Match video duration. In all other cases, keep the default value, Default codec duration. When you choose Match video duration, MediaConvert pads the output audio streams with silence or trims them to ensure that the total duration of each audio stream is at least as long as the total duration of the video stream. After padding or trimming, the audio stream duration is no more than one frame longer than the video stream. MediaConvert applies audio padding or trimming only to the end of the last segment of the output. For unsegmented outputs, MediaConvert adds padding only to the end of the file. When you keep the default value, any minor discrepancies between audio and video duration will depend on your output audio codec.
        public let audioDuration: CmfcAudioDuration?
        /// When enabled, a C2PA compliant manifest will be generated, signed and embeded in the output. For more information on C2PA, see https://c2pa.org/specifications/specifications/2.1/index.html
        public let c2paManifest: Mp4C2paManifest?
        /// Specify the name or ARN of the AWS Secrets Manager secret that contains your C2PA public certificate chain in PEM format. Provide a valid secret name or ARN. Note that your MediaConvert service role must allow access to this secret. The public certificate chain is added to the COSE header (x5chain) for signature validation. Include the signer's certificate and all intermediate certificates. Do not include the root certificate. For details on COSE, see: https://opensource.contentauthenticity.org/docs/manifest/signing-manifests
        public let certificateSecret: String?
        /// When enabled, file composition times will start at zero, composition times in the 'ctts' (composition time to sample) box for B-frames will be negative, and a 'cslg' (composition shift least greatest) box will be included per 14496-1 amendment 1. This improves compatibility with Apple players and tools.
        public let cslgAtom: Mp4CslgAtom?
        /// Ignore this setting unless compliance to the CTTS box version specification matters in your workflow. Specify a value of 1 to set your CTTS box version to 1 and make your output compliant with the specification. When you specify a value of 1, you must also set CSLG atom to the value INCLUDE. Keep the default value 0 to set your CTTS box version to 0. This can provide backward compatibility for some players and packagers.
        public let cttsVersion: Int?
        /// Inserts a free-space box immediately after the moov box.
        public let freeSpaceBox: Mp4FreeSpaceBox?
        /// To place the MOOV atom at the beginning of your output, which is useful for progressive downloading: Leave blank or choose Progressive download. To place the MOOV at the end of your output: Choose Normal.
        public let moovPlacement: Mp4MoovPlacement?
        /// Overrides the "Major Brand" field in the output file. Usually not necessary to specify.
        public let mp4MajorBrand: String?
        /// Specify the ID or ARN of the AWS KMS key used to sign the C2PA manifest in your MP4 output. Provide a valid KMS key ARN. Note that your MediaConvert service role must allow access to this key.
        public let signingKmsKey: String?

        @inlinable
        public init(audioDuration: CmfcAudioDuration? = nil, c2paManifest: Mp4C2paManifest? = nil, certificateSecret: String? = nil, cslgAtom: Mp4CslgAtom? = nil, cttsVersion: Int? = nil, freeSpaceBox: Mp4FreeSpaceBox? = nil, moovPlacement: Mp4MoovPlacement? = nil, mp4MajorBrand: String? = nil, signingKmsKey: String? = nil) {
            self.audioDuration = audioDuration
            self.c2paManifest = c2paManifest
            self.certificateSecret = certificateSecret
            self.cslgAtom = cslgAtom
            self.cttsVersion = cttsVersion
            self.freeSpaceBox = freeSpaceBox
            self.moovPlacement = moovPlacement
            self.mp4MajorBrand = mp4MajorBrand
            self.signingKmsKey = signingKmsKey
        }

        public func validate(name: String) throws {
            try self.validate(self.certificateSecret, name: "certificateSecret", parent: name, max: 2048)
            try self.validate(self.certificateSecret, name: "certificateSecret", parent: name, min: 1)
            try self.validate(self.certificateSecret, name: "certificateSecret", parent: name, pattern: "^(arn:[a-z-]+:secretsmanager:[\\w-]+:\\d{12}:secret:)?[a-zA-Z0-9_\\/_+=.@-]*$")
            try self.validate(self.cttsVersion, name: "cttsVersion", parent: name, max: 1)
            try self.validate(self.cttsVersion, name: "cttsVersion", parent: name, min: 0)
            try self.validate(self.signingKmsKey, name: "signingKmsKey", parent: name, min: 1)
            try self.validate(self.signingKmsKey, name: "signingKmsKey", parent: name, pattern: "^(arn:aws(-us-gov|-cn)?:kms:[a-z-]{2,6}-(east|west|central|((north|south)(east|west)?))-[1-9]{1,2}:\\d{12}:key/)?[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}|mrk-[a-fA-F0-9]{32}$")
        }

        private enum CodingKeys: String, CodingKey {
            case audioDuration = "audioDuration"
            case c2paManifest = "c2paManifest"
            case certificateSecret = "certificateSecret"
            case cslgAtom = "cslgAtom"
            case cttsVersion = "cttsVersion"
            case freeSpaceBox = "freeSpaceBox"
            case moovPlacement = "moovPlacement"
            case mp4MajorBrand = "mp4MajorBrand"
            case signingKmsKey = "signingKmsKey"
        }
    }

    public struct MpdSettings: AWSEncodableShape & AWSDecodableShape {
        /// Optional. Choose Include to have MediaConvert mark up your DASH manifest with  elements for embedded 608 captions. This markup isn't generally required, but some video players require it to discover and play embedded 608 captions. Keep the default value, Exclude, to leave these elements out. When you enable this setting, this is the markup that MediaConvert includes in your manifest:
        public let accessibilityCaptionHints: MpdAccessibilityCaptionHints?
        /// Specify this setting only when your output will be consumed by a downstream repackaging workflow that is sensitive to very small duration differences between video and audio. For this situation, choose Match video duration. In all other cases, keep the default value, Default codec duration. When you choose Match video duration, MediaConvert pads the output audio streams with silence or trims them to ensure that the total duration of each audio stream is at least as long as the total duration of the video stream. After padding or trimming, the audio stream duration is no more than one frame longer than the video stream. MediaConvert applies audio padding or trimming only to the end of the last segment of the output. For unsegmented outputs, MediaConvert adds padding only to the end of the file. When you keep the default value, any minor discrepancies between audio and video duration will depend on your output audio codec.
        public let audioDuration: MpdAudioDuration?
        /// Use this setting only in DASH output groups that include sidecar TTML or IMSC captions. You specify sidecar captions in a separate output from your audio and video. Choose Raw for captions in a single XML file in a raw container. Choose Fragmented MPEG-4 for captions in XML format contained within fragmented MP4 files. This set of fragmented MP4 files is separate from your video and audio fragmented MP4 files.
        public let captionContainerType: MpdCaptionContainerType?
        /// To include key-length-value metadata in this output: Set KLV metadata insertion to Passthrough. MediaConvert reads KLV metadata present in your input and writes each instance to a separate event message box in the output, according to MISB ST1910.1. To exclude this KLV metadata: Set KLV metadata insertion to None or leave blank.
        public let klvMetadata: MpdKlvMetadata?
        /// To add an InbandEventStream element in your output MPD manifest for each type of event message, set Manifest metadata signaling to Enabled. For ID3 event messages, the InbandEventStream element schemeIdUri will be same value that you specify for ID3 metadata scheme ID URI. For SCTE35 event messages, the InbandEventStream element schemeIdUri will be "urn:scte:scte35:2013:bin". To leave these elements out of your output MPD manifest, set Manifest metadata signaling to Disabled. To enable Manifest metadata signaling, you must also set SCTE-35 source to Passthrough, ESAM SCTE-35 to insert, or ID3 metadata to Passthrough.
        public let manifestMetadataSignaling: MpdManifestMetadataSignaling?
        /// Use this setting only when you specify SCTE-35 markers from ESAM. Choose INSERT to put SCTE-35 markers in this output at the insertion points that you specify in an ESAM XML document. Provide the document in the setting SCC XML.
        public let scte35Esam: MpdScte35Esam?
        /// Ignore this setting unless you have SCTE-35 markers in your input video file. Choose Passthrough if you want SCTE-35 markers that appear in your input to also appear in this output. Choose None if you don't want those SCTE-35 markers in this output.
        public let scte35Source: MpdScte35Source?
        /// To include ID3 metadata in this output: Set ID3 metadata to Passthrough. Specify this ID3 metadata in Custom ID3 metadata inserter. MediaConvert writes each instance of ID3 metadata in a separate Event Message (eMSG) box. To exclude this ID3 metadata: Set ID3 metadata to None or leave blank.
        public let timedMetadata: MpdTimedMetadata?
        /// Specify the event message box (eMSG) version for ID3 timed metadata in your output.
        /// For more information, see ISO/IEC 23009-1:2022 section 5.10.3.3.3 Syntax.
        /// Leave blank to use the default value Version 0.
        /// When you specify Version 1, you must also set ID3 metadata to Passthrough.
        public let timedMetadataBoxVersion: MpdTimedMetadataBoxVersion?
        /// Specify the event message box (eMSG) scheme ID URI for ID3 timed metadata in your output. For more information, see ISO/IEC 23009-1:2022 section 5.10.3.3.4 Semantics. Leave blank to use the default value: https://aomedia.org/emsg/ID3 When you specify a value for ID3 metadata scheme ID URI, you must also set ID3 metadata to Passthrough.
        public let timedMetadataSchemeIdUri: String?
        /// Specify the event message box (eMSG) value for ID3 timed metadata in your output. For more information, see ISO/IEC 23009-1:2022 section 5.10.3.3.4 Semantics. When you specify a value for ID3 Metadata Value, you must also set ID3 metadata to Passthrough.
        public let timedMetadataValue: String?

        @inlinable
        public init(accessibilityCaptionHints: MpdAccessibilityCaptionHints? = nil, audioDuration: MpdAudioDuration? = nil, captionContainerType: MpdCaptionContainerType? = nil, klvMetadata: MpdKlvMetadata? = nil, manifestMetadataSignaling: MpdManifestMetadataSignaling? = nil, scte35Esam: MpdScte35Esam? = nil, scte35Source: MpdScte35Source? = nil, timedMetadata: MpdTimedMetadata? = nil, timedMetadataBoxVersion: MpdTimedMetadataBoxVersion? = nil, timedMetadataSchemeIdUri: String? = nil, timedMetadataValue: String? = nil) {
            self.accessibilityCaptionHints = accessibilityCaptionHints
            self.audioDuration = audioDuration
            self.captionContainerType = captionContainerType
            self.klvMetadata = klvMetadata
            self.manifestMetadataSignaling = manifestMetadataSignaling
            self.scte35Esam = scte35Esam
            self.scte35Source = scte35Source
            self.timedMetadata = timedMetadata
            self.timedMetadataBoxVersion = timedMetadataBoxVersion
            self.timedMetadataSchemeIdUri = timedMetadataSchemeIdUri
            self.timedMetadataValue = timedMetadataValue
        }

        public func validate(name: String) throws {
            try self.validate(self.timedMetadataSchemeIdUri, name: "timedMetadataSchemeIdUri", parent: name, max: 1000)
            try self.validate(self.timedMetadataValue, name: "timedMetadataValue", parent: name, max: 1000)
        }

        private enum CodingKeys: String, CodingKey {
            case accessibilityCaptionHints = "accessibilityCaptionHints"
            case audioDuration = "audioDuration"
            case captionContainerType = "captionContainerType"
            case klvMetadata = "klvMetadata"
            case manifestMetadataSignaling = "manifestMetadataSignaling"
            case scte35Esam = "scte35Esam"
            case scte35Source = "scte35Source"
            case timedMetadata = "timedMetadata"
            case timedMetadataBoxVersion = "timedMetadataBoxVersion"
            case timedMetadataSchemeIdUri = "timedMetadataSchemeIdUri"
            case timedMetadataValue = "timedMetadataValue"
        }
    }

    public struct Mpeg2Settings: AWSEncodableShape & AWSDecodableShape {
        /// Specify the strength of any adaptive quantization filters that you enable. The value that you choose here applies to the following settings: Spatial adaptive quantization, and Temporal adaptive quantization.
        public let adaptiveQuantization: Mpeg2AdaptiveQuantization?
        /// Specify the average bitrate in bits per second. Required for VBR and CBR. For MS Smooth outputs, bitrates must be unique when rounded down to the nearest multiple of 1000.
        public let bitrate: Int?
        /// Use Level to set the MPEG-2 level for the video output.
        public let codecLevel: Mpeg2CodecLevel?
        /// Use Profile to set the MPEG-2 profile for the video output.
        public let codecProfile: Mpeg2CodecProfile?
        /// Choose Adaptive to improve subjective video quality for high-motion content. This will cause the service to use fewer B-frames (which infer information based on other frames) for high-motion portions of the video and more B-frames for low-motion portions. The maximum number of B-frames is limited by the value you provide for the setting B frames between reference frames.
        public let dynamicSubGop: Mpeg2DynamicSubGop?
        /// If you are using the console, use the Framerate setting to specify the frame rate for this output. If you want to keep the same frame rate as the input video, choose Follow source. If you want to do frame rate conversion, choose a frame rate from the dropdown list or choose Custom. The framerates shown in the dropdown list are decimal approximations of fractions. If you choose Custom, specify your frame rate as a fraction.
        public let framerateControl: Mpeg2FramerateControl?
        /// Choose the method that you want MediaConvert to use when increasing or decreasing your video's frame rate. For numerically simple conversions, such as 60 fps to 30 fps: We recommend that you keep the default value, Drop duplicate. For numerically complex conversions, to avoid stutter: Choose Interpolate. This results in a smooth picture, but might introduce undesirable video artifacts. For complex frame rate conversions, especially if your source video has already been converted from its original cadence: Choose FrameFormer to do motion-compensated interpolation. FrameFormer uses the best conversion method frame by frame. Note that using FrameFormer increases the transcoding time and incurs a significant add-on cost. When you choose FrameFormer, your input video resolution must be at least 128x96. To create an output with the same number of frames as your input: Choose Maintain frame count. When you do, MediaConvert will not drop, interpolate, add, or otherwise change the frame count from your input to your output. Note that since the frame count is maintained, the duration of your output will become shorter at higher frame rates and longer at lower frame rates.
        public let framerateConversionAlgorithm: Mpeg2FramerateConversionAlgorithm?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateDenominator to specify the denominator of this fraction. In this example, use 1001 for the value of FramerateDenominator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateDenominator: Int?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateNumerator to specify the numerator of this fraction. In this example, use 24000 for the value of FramerateNumerator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateNumerator: Int?
        /// Specify the relative frequency of open to closed GOPs in this output. For example, if you want to allow four open GOPs and then require a closed GOP, set this value to 5. When you create a streaming output, we recommend that you keep the default value, 1, so that players starting mid-stream receive an IDR frame as quickly as possible. Don't set this value to 0; that would break output segmenting.
        public let gopClosedCadence: Int?
        /// Specify the interval between keyframes, in seconds or frames, for this output. Default: 12 Related settings: When you specify the GOP size in seconds, set GOP mode control to Specified, seconds. The default value for GOP mode control is Frames.
        public let gopSize: Double?
        /// Specify the units for GOP size. If you don't specify a value here, by default the encoder measures GOP size in frames.
        public let gopSizeUnits: Mpeg2GopSizeUnits?
        /// If your downstream systems have strict buffer requirements: Specify the minimum percentage of the HRD buffer that's available at the end of each encoded video segment. For the best video quality: Set to 0 or leave blank to automatically determine the final buffer fill percentage.
        public let hrdBufferFinalFillPercentage: Int?
        /// Percentage of the buffer that should initially be filled (HRD buffer model).
        public let hrdBufferInitialFillPercentage: Int?
        /// Size of buffer (HRD buffer model) in bits. For example, enter five megabits as 5000000.
        public let hrdBufferSize: Int?
        /// Choose the scan line type for the output. Keep the default value, Progressive to create a progressive output, regardless of the scan type of your input. Use Top field first or Bottom field first to create an output that's interlaced with the same field polarity throughout. Use Follow, default top or Follow, default bottom to produce outputs with the same field polarity as the source. For jobs that have multiple inputs, the output field polarity might change over the course of the output. Follow behavior depends on the input scan type. If the source is interlaced, the output will be interlaced with the same polarity as the source. If the source is progressive, the output will be interlaced with top field bottom field first, depending on which of the Follow options you choose.
        public let interlaceMode: Mpeg2InterlaceMode?
        /// Use Intra DC precision to set quantization precision for intra-block DC coefficients. If you choose the value auto, the service will automatically select the precision based on the per-frame compression ratio.
        public let intraDcPrecision: Mpeg2IntraDcPrecision?
        /// Maximum bitrate in bits/second. For example, enter five megabits per second as 5000000.
        public let maxBitrate: Int?
        /// Specify the minimum number of frames allowed between two IDR-frames in your output. This includes frames created at the start of a GOP or a scene change. Use Min I-Interval to improve video compression by varying GOP size when two IDR-frames would be created near each other. For example, if a regular cadence-driven IDR-frame would fall within 5 frames of a scene-change IDR-frame, and you set Min I-interval to 5, then the encoder would only write an IDR-frame for the scene-change. In this way, one GOP is shortened or extended. If a cadence-driven IDR-frame would be further than 5 frames from a scene-change IDR-frame, then the encoder leaves all IDR-frames in place. To manually specify an interval: Enter a value from 1 to 30. Use when your downstream systems have specific GOP size requirements. To disable GOP size variance: Enter 0. MediaConvert will only create IDR-frames at the start of your output's cadence-driven GOP. Use when your downstream systems require a regular GOP size.
        public let minIInterval: Int?
        /// Specify the number of B-frames that MediaConvert puts between reference frames in this output. Valid values are whole numbers from 0 through 7. When you don't specify a value, MediaConvert defaults to 2.
        public let numberBFramesBetweenReferenceFrames: Int?
        /// Optional. Specify how the service determines the pixel aspect ratio (PAR) for this output. The default behavior, Follow source, uses the PAR from your input video for your output. To specify a different PAR in the console, choose any value other than Follow source. When you choose SPECIFIED for this setting, you must also specify values for the parNumerator and parDenominator settings.
        public let parControl: Mpeg2ParControl?
        /// Required when you set Pixel aspect ratio to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parDenominator is 33.
        public let parDenominator: Int?
        /// Required when you set Pixel aspect ratio to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parNumerator is 40.
        public let parNumerator: Int?
        /// Optionally choose one or more per frame metric reports to generate along with your output. You can use these metrics to analyze your video output according to one or more commonly used image quality metrics. You can specify per frame metrics for output groups or for individual outputs. When you do, MediaConvert writes a CSV (Comma-Separated Values) file to your S3 output destination, named after the output name and metric type. For example: videofile_PSNR.csv Jobs that generate per frame metrics will take longer to complete, depending on the resolution and complexity of your output. For example, some 4K jobs might take up to twice as long to complete. Note that when analyzing the video quality of your output, or when comparing the video quality of multiple different outputs, we generally also recommend a detailed visual review in a controlled environment. You can choose from the following per frame metrics: * PSNR: Peak Signal-to-Noise Ratio * SSIM: Structural Similarity Index Measure * MS_SSIM: Multi-Scale Similarity Index Measure * PSNR_HVS: Peak Signal-to-Noise Ratio, Human Visual System * VMAF: Video Multi-Method Assessment Fusion * QVBR: Quality-Defined Variable Bitrate. This option is only available when your output uses the QVBR rate control mode.
        public let perFrameMetrics: [FrameMetricType]?
        /// Optional. Use Quality tuning level to choose how you want to trade off encoding speed for output video quality. The default behavior is faster, lower quality, single-pass encoding.
        public let qualityTuningLevel: Mpeg2QualityTuningLevel?
        /// Use Rate control mode to specify whether the bitrate is variable (vbr) or constant (cbr).
        public let rateControlMode: Mpeg2RateControlMode?
        /// Use this setting for interlaced outputs, when your output frame rate is half of your input frame rate. In this situation, choose Optimized interlacing to create a better quality interlaced output. In this case, each progressive frame from the input corresponds to an interlaced field in the output. Keep the default value, Basic interlacing, for all other output frame rates. With basic interlacing, MediaConvert performs any frame rate conversion first and then interlaces the frames. When you choose Optimized interlacing and you set your output frame rate to a value that isn't suitable for optimized interlacing, MediaConvert automatically falls back to basic interlacing. Required settings: To use optimized interlacing, you must set Telecine to None or Soft. You can't use optimized interlacing for hard telecine outputs. You must also set Interlace mode to a value other than Progressive.
        public let scanTypeConversionMode: Mpeg2ScanTypeConversionMode?
        /// Enable this setting to insert I-frames at scene changes that the service automatically detects. This improves video quality and is enabled by default.
        public let sceneChangeDetect: Mpeg2SceneChangeDetect?
        /// Ignore this setting unless your input frame rate is 23.976 or 24 frames per second (fps). Enable slow PAL to create a 25 fps output. When you enable slow PAL, MediaConvert relabels the video frames to 25 fps and resamples your audio to keep it synchronized with the video. Note that enabling this setting will slightly reduce the duration of your video. Required settings: You must also set Framerate to 25.
        public let slowPal: Mpeg2SlowPal?
        /// Ignore this setting unless you need to comply with a specification that requires a specific value. If you don't have a specification requirement, we recommend that you adjust the softness of your output by using a lower value for the setting Sharpness or by enabling a noise reducer filter. The Softness setting specifies the quantization matrices that the encoder uses. Keep the default value, 0, to use the AWS Elemental default matrices. Choose a value from 17 to 128 to use planar interpolation. Increasing values from 17 to 128 result in increasing reduction of high-frequency data. The value 128 results in the softest video.
        public let softness: Int?
        /// Keep the default value, Enabled, to adjust quantization within each frame based on spatial variation of content complexity. When you enable this feature, the encoder uses fewer bits on areas that can sustain more distortion with no noticeable visual degradation and uses more bits on areas where any small distortion will be noticeable. For example, complex textured blocks are encoded with fewer bits and smooth textured blocks are encoded with more bits. Enabling this feature will almost always improve your video quality. Note, though, that this feature doesn't take into account where the viewer's attention is likely to be. If viewers are likely to be focusing their attention on a part of the screen with a lot of complex texture, you might choose to disable this feature. Related setting: When you enable spatial adaptive quantization, set the value for Adaptive quantization depending on your content. For homogeneous content, such as cartoons and video games, set it to Low. For content with a wider variety of textures, set it to High or Higher.
        public let spatialAdaptiveQuantization: Mpeg2SpatialAdaptiveQuantization?
        /// Specify whether this output's video uses the D10 syntax. Keep the default value to not use the syntax. Related settings: When you choose D10 for your MXF profile, you must also set this value to D10.
        public let syntax: Mpeg2Syntax?
        /// When you do frame rate conversion from 23.976 frames per second (fps) to 29.97 fps, and your output scan type is interlaced, you can optionally enable hard or soft telecine to create a smoother picture. Hard telecine produces a 29.97i output. Soft telecine produces an output with a 23.976 output that signals to the video player device to do the conversion during play back. When you keep the default value, None, MediaConvert does a standard frame rate conversion to 29.97 without doing anything with the field polarity to create a smoother picture.
        public let telecine: Mpeg2Telecine?
        /// Keep the default value, Enabled, to adjust quantization within each frame based on temporal variation of content complexity. When you enable this feature, the encoder uses fewer bits on areas of the frame that aren't moving and uses more bits on complex objects with sharp edges that move a lot. For example, this feature improves the readability of text tickers on newscasts and scoreboards on sports matches. Enabling this feature will almost always improve your video quality. Note, though, that this feature doesn't take into account where the viewer's attention is likely to be. If viewers are likely to be focusing their attention on a part of the screen that doesn't have moving objects with sharp edges, such as sports athletes' faces, you might choose to disable this feature. Related setting: When you enable temporal quantization, adjust the strength of the filter with the setting Adaptive quantization.
        public let temporalAdaptiveQuantization: Mpeg2TemporalAdaptiveQuantization?

        @inlinable
        public init(adaptiveQuantization: Mpeg2AdaptiveQuantization? = nil, bitrate: Int? = nil, codecLevel: Mpeg2CodecLevel? = nil, codecProfile: Mpeg2CodecProfile? = nil, dynamicSubGop: Mpeg2DynamicSubGop? = nil, framerateControl: Mpeg2FramerateControl? = nil, framerateConversionAlgorithm: Mpeg2FramerateConversionAlgorithm? = nil, framerateDenominator: Int? = nil, framerateNumerator: Int? = nil, gopClosedCadence: Int? = nil, gopSize: Double? = nil, gopSizeUnits: Mpeg2GopSizeUnits? = nil, hrdBufferFinalFillPercentage: Int? = nil, hrdBufferInitialFillPercentage: Int? = nil, hrdBufferSize: Int? = nil, interlaceMode: Mpeg2InterlaceMode? = nil, intraDcPrecision: Mpeg2IntraDcPrecision? = nil, maxBitrate: Int? = nil, minIInterval: Int? = nil, numberBFramesBetweenReferenceFrames: Int? = nil, parControl: Mpeg2ParControl? = nil, parDenominator: Int? = nil, parNumerator: Int? = nil, perFrameMetrics: [FrameMetricType]? = nil, qualityTuningLevel: Mpeg2QualityTuningLevel? = nil, rateControlMode: Mpeg2RateControlMode? = nil, scanTypeConversionMode: Mpeg2ScanTypeConversionMode? = nil, sceneChangeDetect: Mpeg2SceneChangeDetect? = nil, slowPal: Mpeg2SlowPal? = nil, softness: Int? = nil, spatialAdaptiveQuantization: Mpeg2SpatialAdaptiveQuantization? = nil, syntax: Mpeg2Syntax? = nil, telecine: Mpeg2Telecine? = nil, temporalAdaptiveQuantization: Mpeg2TemporalAdaptiveQuantization? = nil) {
            self.adaptiveQuantization = adaptiveQuantization
            self.bitrate = bitrate
            self.codecLevel = codecLevel
            self.codecProfile = codecProfile
            self.dynamicSubGop = dynamicSubGop
            self.framerateControl = framerateControl
            self.framerateConversionAlgorithm = framerateConversionAlgorithm
            self.framerateDenominator = framerateDenominator
            self.framerateNumerator = framerateNumerator
            self.gopClosedCadence = gopClosedCadence
            self.gopSize = gopSize
            self.gopSizeUnits = gopSizeUnits
            self.hrdBufferFinalFillPercentage = hrdBufferFinalFillPercentage
            self.hrdBufferInitialFillPercentage = hrdBufferInitialFillPercentage
            self.hrdBufferSize = hrdBufferSize
            self.interlaceMode = interlaceMode
            self.intraDcPrecision = intraDcPrecision
            self.maxBitrate = maxBitrate
            self.minIInterval = minIInterval
            self.numberBFramesBetweenReferenceFrames = numberBFramesBetweenReferenceFrames
            self.parControl = parControl
            self.parDenominator = parDenominator
            self.parNumerator = parNumerator
            self.perFrameMetrics = perFrameMetrics
            self.qualityTuningLevel = qualityTuningLevel
            self.rateControlMode = rateControlMode
            self.scanTypeConversionMode = scanTypeConversionMode
            self.sceneChangeDetect = sceneChangeDetect
            self.slowPal = slowPal
            self.softness = softness
            self.spatialAdaptiveQuantization = spatialAdaptiveQuantization
            self.syntax = syntax
            self.telecine = telecine
            self.temporalAdaptiveQuantization = temporalAdaptiveQuantization
        }

        public func validate(name: String) throws {
            try self.validate(self.bitrate, name: "bitrate", parent: name, max: 288000000)
            try self.validate(self.bitrate, name: "bitrate", parent: name, min: 1000)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, max: 1001)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, min: 1)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, max: 60000)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, min: 24)
            try self.validate(self.gopClosedCadence, name: "gopClosedCadence", parent: name, max: 2147483647)
            try self.validate(self.gopClosedCadence, name: "gopClosedCadence", parent: name, min: 0)
            try self.validate(self.hrdBufferFinalFillPercentage, name: "hrdBufferFinalFillPercentage", parent: name, max: 100)
            try self.validate(self.hrdBufferFinalFillPercentage, name: "hrdBufferFinalFillPercentage", parent: name, min: 0)
            try self.validate(self.hrdBufferInitialFillPercentage, name: "hrdBufferInitialFillPercentage", parent: name, max: 100)
            try self.validate(self.hrdBufferInitialFillPercentage, name: "hrdBufferInitialFillPercentage", parent: name, min: 0)
            try self.validate(self.hrdBufferSize, name: "hrdBufferSize", parent: name, max: 47185920)
            try self.validate(self.hrdBufferSize, name: "hrdBufferSize", parent: name, min: 0)
            try self.validate(self.maxBitrate, name: "maxBitrate", parent: name, max: 300000000)
            try self.validate(self.maxBitrate, name: "maxBitrate", parent: name, min: 1000)
            try self.validate(self.minIInterval, name: "minIInterval", parent: name, max: 30)
            try self.validate(self.minIInterval, name: "minIInterval", parent: name, min: 0)
            try self.validate(self.numberBFramesBetweenReferenceFrames, name: "numberBFramesBetweenReferenceFrames", parent: name, max: 7)
            try self.validate(self.numberBFramesBetweenReferenceFrames, name: "numberBFramesBetweenReferenceFrames", parent: name, min: 0)
            try self.validate(self.parDenominator, name: "parDenominator", parent: name, max: 2147483647)
            try self.validate(self.parDenominator, name: "parDenominator", parent: name, min: 1)
            try self.validate(self.parNumerator, name: "parNumerator", parent: name, max: 2147483647)
            try self.validate(self.parNumerator, name: "parNumerator", parent: name, min: 1)
            try self.validate(self.softness, name: "softness", parent: name, max: 128)
            try self.validate(self.softness, name: "softness", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case adaptiveQuantization = "adaptiveQuantization"
            case bitrate = "bitrate"
            case codecLevel = "codecLevel"
            case codecProfile = "codecProfile"
            case dynamicSubGop = "dynamicSubGop"
            case framerateControl = "framerateControl"
            case framerateConversionAlgorithm = "framerateConversionAlgorithm"
            case framerateDenominator = "framerateDenominator"
            case framerateNumerator = "framerateNumerator"
            case gopClosedCadence = "gopClosedCadence"
            case gopSize = "gopSize"
            case gopSizeUnits = "gopSizeUnits"
            case hrdBufferFinalFillPercentage = "hrdBufferFinalFillPercentage"
            case hrdBufferInitialFillPercentage = "hrdBufferInitialFillPercentage"
            case hrdBufferSize = "hrdBufferSize"
            case interlaceMode = "interlaceMode"
            case intraDcPrecision = "intraDcPrecision"
            case maxBitrate = "maxBitrate"
            case minIInterval = "minIInterval"
            case numberBFramesBetweenReferenceFrames = "numberBFramesBetweenReferenceFrames"
            case parControl = "parControl"
            case parDenominator = "parDenominator"
            case parNumerator = "parNumerator"
            case perFrameMetrics = "perFrameMetrics"
            case qualityTuningLevel = "qualityTuningLevel"
            case rateControlMode = "rateControlMode"
            case scanTypeConversionMode = "scanTypeConversionMode"
            case sceneChangeDetect = "sceneChangeDetect"
            case slowPal = "slowPal"
            case softness = "softness"
            case spatialAdaptiveQuantization = "spatialAdaptiveQuantization"
            case syntax = "syntax"
            case telecine = "telecine"
            case temporalAdaptiveQuantization = "temporalAdaptiveQuantization"
        }
    }

    public struct MsSmoothAdditionalManifest: AWSEncodableShape & AWSDecodableShape {
        /// Specify a name modifier that the service adds to the name of this manifest to make it different from the file names of the other main manifests in the output group. For example, say that the default main manifest for your Microsoft Smooth group is film-name.ismv. If you enter "-no-premium" for this setting, then the file name the service generates for this top-level manifest is film-name-no-premium.ismv.
        public let manifestNameModifier: String?
        /// Specify the outputs that you want this additional top-level manifest to reference.
        public let selectedOutputs: [String]?

        @inlinable
        public init(manifestNameModifier: String? = nil, selectedOutputs: [String]? = nil) {
            self.manifestNameModifier = manifestNameModifier
            self.selectedOutputs = selectedOutputs
        }

        public func validate(name: String) throws {
            try self.validate(self.manifestNameModifier, name: "manifestNameModifier", parent: name, min: 1)
            try self.selectedOutputs?.forEach {
                try validate($0, name: "selectedOutputs[]", parent: name, min: 1)
            }
        }

        private enum CodingKeys: String, CodingKey {
            case manifestNameModifier = "manifestNameModifier"
            case selectedOutputs = "selectedOutputs"
        }
    }

    public struct MsSmoothEncryptionSettings: AWSEncodableShape & AWSDecodableShape {
        /// If your output group type is HLS, DASH, or Microsoft Smooth, use these settings when doing DRM encryption with a SPEKE-compliant key provider. If your output group type is CMAF, use the SpekeKeyProviderCmaf settings instead.
        public let spekeKeyProvider: SpekeKeyProvider?

        @inlinable
        public init(spekeKeyProvider: SpekeKeyProvider? = nil) {
            self.spekeKeyProvider = spekeKeyProvider
        }

        public func validate(name: String) throws {
            try self.spekeKeyProvider?.validate(name: "\(name).spekeKeyProvider")
        }

        private enum CodingKeys: String, CodingKey {
            case spekeKeyProvider = "spekeKeyProvider"
        }
    }

    public struct MsSmoothGroupSettings: AWSEncodableShape & AWSDecodableShape {
        /// By default, the service creates one .ism Microsoft Smooth Streaming manifest for each Microsoft Smooth Streaming output group in your job. This default manifest references every output in the output group. To create additional manifests that reference a subset of the outputs in the output group, specify a list of them here.
        public let additionalManifests: [MsSmoothAdditionalManifest]?
        /// COMBINE_DUPLICATE_STREAMS combines identical audio encoding settings across a Microsoft Smooth output group into a single audio stream.
        public let audioDeduplication: MsSmoothAudioDeduplication?
        /// Use Destination to specify the S3 output location and the output filename base. Destination accepts format identifiers. If you do not specify the base filename in the URI, the service will use the filename of the input file. If your job has multiple inputs, the service uses the filename of the first input file.
        public let destination: String?
        /// Settings associated with the destination. Will vary based on the type of destination
        public let destinationSettings: DestinationSettings?
        /// If you are using DRM, set DRM System to specify the value SpekeKeyProvider.
        public let encryption: MsSmoothEncryptionSettings?
        /// Specify how you want MediaConvert to determine the fragment length. Choose Exact to have the encoder use the exact length that you specify with the setting Fragment length. This might result in extra I-frames. Choose Multiple of GOP to have the encoder round up the segment lengths to match the next GOP boundary.
        public let fragmentLength: Int?
        /// Specify how you want MediaConvert to determine the fragment length. Choose Exact to have the encoder use the exact length that you specify with the setting Fragment length. This might result in extra I-frames. Choose Multiple of GOP to have the encoder round up the segment lengths to match the next GOP boundary.
        public let fragmentLengthControl: MsSmoothFragmentLengthControl?
        /// Use Manifest encoding to specify the encoding format for the server and client manifest. Valid options are utf8 and utf16.
        public let manifestEncoding: MsSmoothManifestEncoding?

        @inlinable
        public init(additionalManifests: [MsSmoothAdditionalManifest]? = nil, audioDeduplication: MsSmoothAudioDeduplication? = nil, destination: String? = nil, destinationSettings: DestinationSettings? = nil, encryption: MsSmoothEncryptionSettings? = nil, fragmentLength: Int? = nil, fragmentLengthControl: MsSmoothFragmentLengthControl? = nil, manifestEncoding: MsSmoothManifestEncoding? = nil) {
            self.additionalManifests = additionalManifests
            self.audioDeduplication = audioDeduplication
            self.destination = destination
            self.destinationSettings = destinationSettings
            self.encryption = encryption
            self.fragmentLength = fragmentLength
            self.fragmentLengthControl = fragmentLengthControl
            self.manifestEncoding = manifestEncoding
        }

        public func validate(name: String) throws {
            try self.additionalManifests?.forEach {
                try $0.validate(name: "\(name).additionalManifests[]")
            }
            try self.validate(self.destination, name: "destination", parent: name, pattern: "^s3:\\/\\/")
            try self.destinationSettings?.validate(name: "\(name).destinationSettings")
            try self.encryption?.validate(name: "\(name).encryption")
            try self.validate(self.fragmentLength, name: "fragmentLength", parent: name, max: 2147483647)
            try self.validate(self.fragmentLength, name: "fragmentLength", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case additionalManifests = "additionalManifests"
            case audioDeduplication = "audioDeduplication"
            case destination = "destination"
            case destinationSettings = "destinationSettings"
            case encryption = "encryption"
            case fragmentLength = "fragmentLength"
            case fragmentLengthControl = "fragmentLengthControl"
            case manifestEncoding = "manifestEncoding"
        }
    }

    public struct MxfSettings: AWSEncodableShape & AWSDecodableShape {
        /// Optional. When you have AFD signaling set up in your output video stream, use this setting to choose whether to also include it in the MXF wrapper. Choose Don't copy to exclude AFD signaling from the MXF wrapper. Choose Copy from video stream to copy the AFD values from the video stream for this output to the MXF wrapper. Regardless of which option you choose, the AFD values remain in the video stream. Related settings: To set up your output to include or exclude AFD values, see AfdSignaling, under VideoDescription. On the console, find AFD signaling under the output's video encoding settings.
        public let afdSignaling: MxfAfdSignaling?
        /// Specify the MXF profile, also called shim, for this output. To automatically select a profile according to your output video codec and resolution, leave blank. For a list of codecs supported with each MXF profile, see https://docs.aws.amazon.com/mediaconvert/latest/ug/codecs-supported-with-each-mxf-profile.html. For more information about the automatic selection behavior, see https://docs.aws.amazon.com/mediaconvert/latest/ug/default-automatic-selection-of-mxf-profiles.html.
        public let profile: MxfProfile?
        /// Specify the XAVC profile settings for MXF outputs when you set your MXF profile to XAVC.
        public let xavcProfileSettings: MxfXavcProfileSettings?

        @inlinable
        public init(afdSignaling: MxfAfdSignaling? = nil, profile: MxfProfile? = nil, xavcProfileSettings: MxfXavcProfileSettings? = nil) {
            self.afdSignaling = afdSignaling
            self.profile = profile
            self.xavcProfileSettings = xavcProfileSettings
        }

        public func validate(name: String) throws {
            try self.xavcProfileSettings?.validate(name: "\(name).xavcProfileSettings")
        }

        private enum CodingKeys: String, CodingKey {
            case afdSignaling = "afdSignaling"
            case profile = "profile"
            case xavcProfileSettings = "xavcProfileSettings"
        }
    }

    public struct MxfXavcProfileSettings: AWSEncodableShape & AWSDecodableShape {
        /// To create an output that complies with the XAVC file format guidelines for interoperability, keep the default value, Drop frames for compliance. To include all frames from your input in this output, keep the default setting, Allow any duration. The number of frames that MediaConvert excludes when you set this to Drop frames for compliance depends on the output frame rate and duration.
        public let durationMode: MxfXavcDurationMode?
        /// Specify a value for this setting only for outputs that you set up with one of these two XAVC profiles: XAVC HD Intra CBG or XAVC 4K Intra CBG. Specify the amount of space in each frame that the service reserves for ancillary data, such as teletext captions. The default value for this setting is 1492 bytes per frame. This should be sufficient to prevent overflow unless you have multiple pages of teletext captions data. If you have a large amount of teletext data, specify a larger number.
        public let maxAncDataSize: Int?

        @inlinable
        public init(durationMode: MxfXavcDurationMode? = nil, maxAncDataSize: Int? = nil) {
            self.durationMode = durationMode
            self.maxAncDataSize = maxAncDataSize
        }

        public func validate(name: String) throws {
            try self.validate(self.maxAncDataSize, name: "maxAncDataSize", parent: name, max: 2147483647)
            try self.validate(self.maxAncDataSize, name: "maxAncDataSize", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case durationMode = "durationMode"
            case maxAncDataSize = "maxAncDataSize"
        }
    }

    public struct NexGuardFileMarkerSettings: AWSEncodableShape & AWSDecodableShape {
        /// Use the base64 license string that Nagra provides you. Enter it directly in your JSON job specification or in the console. Required when you include Nagra NexGuard File Marker watermarking in your job.
        public let license: String?
        /// Specify the payload ID that you want associated with this output. Valid values vary depending on your Nagra NexGuard forensic watermarking workflow. Required when you include Nagra NexGuard File Marker watermarking in your job. For PreRelease Content (NGPR/G2), specify an integer from 1 through 4,194,303. You must generate a unique ID for each asset you watermark, and keep a record of which ID you have assigned to each asset. Neither Nagra nor MediaConvert keep track of the relationship between output files and your IDs. For OTT Streaming, create two adaptive bitrate (ABR) stacks for each asset. Do this by setting up two output groups. For one output group, set the value of Payload ID to 0 in every output. For the other output group, set Payload ID to 1 in every output.
        public let payload: Int?
        /// Enter one of the watermarking preset strings that Nagra provides you. Required when you include Nagra NexGuard File Marker watermarking in your job.
        public let preset: String?
        /// Optional. Ignore this setting unless Nagra support directs you to specify a value. When you don't specify a value here, the Nagra NexGuard library uses its default value.
        public let strength: WatermarkingStrength?

        @inlinable
        public init(license: String? = nil, payload: Int? = nil, preset: String? = nil, strength: WatermarkingStrength? = nil) {
            self.license = license
            self.payload = payload
            self.preset = preset
            self.strength = strength
        }

        public func validate(name: String) throws {
            try self.validate(self.license, name: "license", parent: name, max: 100000)
            try self.validate(self.license, name: "license", parent: name, min: 1)
            try self.validate(self.payload, name: "payload", parent: name, max: 4194303)
            try self.validate(self.payload, name: "payload", parent: name, min: 0)
            try self.validate(self.preset, name: "preset", parent: name, max: 256)
            try self.validate(self.preset, name: "preset", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case license = "license"
            case payload = "payload"
            case preset = "preset"
            case strength = "strength"
        }
    }

    public struct NielsenConfiguration: AWSEncodableShape & AWSDecodableShape {
        /// Nielsen has discontinued the use of breakout code functionality. If you must include this property, set the value to zero.
        public let breakoutCode: Int?
        /// Use Distributor ID to specify the distributor ID that is assigned to your organization by Nielsen.
        public let distributorId: String?

        @inlinable
        public init(breakoutCode: Int? = nil, distributorId: String? = nil) {
            self.breakoutCode = breakoutCode
            self.distributorId = distributorId
        }

        public func validate(name: String) throws {
            try self.validate(self.breakoutCode, name: "breakoutCode", parent: name, max: 0)
            try self.validate(self.breakoutCode, name: "breakoutCode", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case breakoutCode = "breakoutCode"
            case distributorId = "distributorId"
        }
    }

    public struct NielsenNonLinearWatermarkSettings: AWSEncodableShape & AWSDecodableShape {
        /// Choose the type of Nielsen watermarks that you want in your outputs. When you choose NAES 2 and NW, you must provide a value for the setting SID. When you choose CBET, you must provide a value for the setting CSID. When you choose NAES 2, NW, and CBET, you must provide values for both of these settings.
        public let activeWatermarkProcess: NielsenActiveWatermarkProcessType?
        /// Optional. Use this setting when you want the service to include an ADI file in the Nielsen metadata .zip file. To provide an ADI file, store it in Amazon S3 and provide a URL to it here. The URL should be in the following format: S3://bucket/path/ADI-file. For more information about the metadata .zip file, see the setting Metadata destination.
        public let adiFilename: String?
        /// Use the asset ID that you provide to Nielsen to uniquely identify this asset. Required for all Nielsen non-linear watermarking.
        public let assetId: String?
        /// Use the asset name that you provide to Nielsen for this asset. Required for all Nielsen non-linear watermarking.
        public let assetName: String?
        /// Use the CSID that Nielsen provides to you. This CBET source ID should be unique to your Nielsen account but common to all of your output assets that have CBET watermarking. Required when you choose a value for the setting Watermark types that includes CBET.
        public let cbetSourceId: String?
        /// Optional. If this asset uses an episode ID with Nielsen, provide it here.
        public let episodeId: String?
        /// Specify the Amazon S3 location where you want MediaConvert to save your Nielsen non-linear metadata .zip file. This Amazon S3 bucket must be in the same Region as the one where you do your MediaConvert transcoding. If you want to include an ADI file in this .zip file, use the setting ADI file to specify it. MediaConvert delivers the Nielsen metadata .zip files only to your metadata destination Amazon S3 bucket. It doesn't deliver the .zip files to Nielsen. You are responsible for delivering the metadata .zip files to Nielsen.
        public let metadataDestination: String?
        /// Use the SID that Nielsen provides to you. This source ID should be unique to your Nielsen account but common to all of your output assets. Required for all Nielsen non-linear watermarking. This ID should be unique to your Nielsen account but common to all of your output assets. Required for all Nielsen non-linear watermarking.
        public let sourceId: Int?
        /// Required. Specify whether your source content already contains Nielsen non-linear watermarks. When you set this value to Watermarked, the service fails the job. Nielsen requires that you add non-linear watermarking to only clean content that doesn't already have non-linear Nielsen watermarks.
        public let sourceWatermarkStatus: NielsenSourceWatermarkStatusType?
        /// Specify the endpoint for the TIC server that you have deployed and configured in the AWS Cloud. Required for all Nielsen non-linear watermarking. MediaConvert can't connect directly to a TIC server. Instead, you must use API Gateway to provide a RESTful interface between MediaConvert and a TIC server that you deploy in your AWS account. For more information on deploying a TIC server in your AWS account and the required API Gateway, contact Nielsen support.
        public let ticServerUrl: String?
        /// To create assets that have the same TIC values in each audio track, keep the default value Share TICs. To create assets that have unique TIC values for each audio track, choose Use unique TICs.
        public let uniqueTicPerAudioTrack: NielsenUniqueTicPerAudioTrackType?

        @inlinable
        public init(activeWatermarkProcess: NielsenActiveWatermarkProcessType? = nil, adiFilename: String? = nil, assetId: String? = nil, assetName: String? = nil, cbetSourceId: String? = nil, episodeId: String? = nil, metadataDestination: String? = nil, sourceId: Int? = nil, sourceWatermarkStatus: NielsenSourceWatermarkStatusType? = nil, ticServerUrl: String? = nil, uniqueTicPerAudioTrack: NielsenUniqueTicPerAudioTrackType? = nil) {
            self.activeWatermarkProcess = activeWatermarkProcess
            self.adiFilename = adiFilename
            self.assetId = assetId
            self.assetName = assetName
            self.cbetSourceId = cbetSourceId
            self.episodeId = episodeId
            self.metadataDestination = metadataDestination
            self.sourceId = sourceId
            self.sourceWatermarkStatus = sourceWatermarkStatus
            self.ticServerUrl = ticServerUrl
            self.uniqueTicPerAudioTrack = uniqueTicPerAudioTrack
        }

        public func validate(name: String) throws {
            try self.validate(self.adiFilename, name: "adiFilename", parent: name, pattern: "^s3:\\/\\/")
            try self.validate(self.assetId, name: "assetId", parent: name, max: 20)
            try self.validate(self.assetId, name: "assetId", parent: name, min: 1)
            try self.validate(self.assetName, name: "assetName", parent: name, max: 50)
            try self.validate(self.assetName, name: "assetName", parent: name, min: 1)
            try self.validate(self.cbetSourceId, name: "cbetSourceId", parent: name, pattern: "^(^0x[A-Fa-f0-9]{0,8}$|^[1-9][0-9]{0,8}$)$")
            try self.validate(self.episodeId, name: "episodeId", parent: name, max: 20)
            try self.validate(self.episodeId, name: "episodeId", parent: name, min: 1)
            try self.validate(self.metadataDestination, name: "metadataDestination", parent: name, pattern: "^s3:\\/\\/")
            try self.validate(self.sourceId, name: "sourceId", parent: name, max: 65534)
            try self.validate(self.sourceId, name: "sourceId", parent: name, min: 0)
            try self.validate(self.ticServerUrl, name: "ticServerUrl", parent: name, pattern: "^https:\\/\\/$")
        }

        private enum CodingKeys: String, CodingKey {
            case activeWatermarkProcess = "activeWatermarkProcess"
            case adiFilename = "adiFilename"
            case assetId = "assetId"
            case assetName = "assetName"
            case cbetSourceId = "cbetSourceId"
            case episodeId = "episodeId"
            case metadataDestination = "metadataDestination"
            case sourceId = "sourceId"
            case sourceWatermarkStatus = "sourceWatermarkStatus"
            case ticServerUrl = "ticServerUrl"
            case uniqueTicPerAudioTrack = "uniqueTicPerAudioTrack"
        }
    }

    public struct NoiseReducer: AWSEncodableShape & AWSDecodableShape {
        /// Use Noise reducer filter to select one of the following spatial image filtering functions. To use this setting, you must also enable Noise reducer. * Bilateral preserves edges while reducing noise. * Mean (softest), Gaussian, Lanczos, and Sharpen (sharpest) do convolution filtering. * Conserve does min/max noise reduction. * Spatial does frequency-domain filtering based on JND principles. * Temporal optimizes video quality for complex motion.
        public let filter: NoiseReducerFilter?
        /// Settings for a noise reducer filter
        public let filterSettings: NoiseReducerFilterSettings?
        /// Noise reducer filter settings for spatial filter.
        public let spatialFilterSettings: NoiseReducerSpatialFilterSettings?
        /// Noise reducer filter settings for temporal filter.
        public let temporalFilterSettings: NoiseReducerTemporalFilterSettings?

        @inlinable
        public init(filter: NoiseReducerFilter? = nil, filterSettings: NoiseReducerFilterSettings? = nil, spatialFilterSettings: NoiseReducerSpatialFilterSettings? = nil, temporalFilterSettings: NoiseReducerTemporalFilterSettings? = nil) {
            self.filter = filter
            self.filterSettings = filterSettings
            self.spatialFilterSettings = spatialFilterSettings
            self.temporalFilterSettings = temporalFilterSettings
        }

        public func validate(name: String) throws {
            try self.filterSettings?.validate(name: "\(name).filterSettings")
            try self.spatialFilterSettings?.validate(name: "\(name).spatialFilterSettings")
            try self.temporalFilterSettings?.validate(name: "\(name).temporalFilterSettings")
        }

        private enum CodingKeys: String, CodingKey {
            case filter = "filter"
            case filterSettings = "filterSettings"
            case spatialFilterSettings = "spatialFilterSettings"
            case temporalFilterSettings = "temporalFilterSettings"
        }
    }

    public struct NoiseReducerFilterSettings: AWSEncodableShape & AWSDecodableShape {
        /// Relative strength of noise reducing filter. Higher values produce stronger filtering.
        public let strength: Int?

        @inlinable
        public init(strength: Int? = nil) {
            self.strength = strength
        }

        public func validate(name: String) throws {
            try self.validate(self.strength, name: "strength", parent: name, max: 3)
            try self.validate(self.strength, name: "strength", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case strength = "strength"
        }
    }

    public struct NoiseReducerSpatialFilterSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify strength of post noise reduction sharpening filter, with 0 disabling the filter and 3 enabling it at maximum strength.
        public let postFilterSharpenStrength: Int?
        /// The speed of the filter, from -2 (lower speed) to 3 (higher speed), with 0 being the nominal value.
        public let speed: Int?
        /// Relative strength of noise reducing filter. Higher values produce stronger filtering.
        public let strength: Int?

        @inlinable
        public init(postFilterSharpenStrength: Int? = nil, speed: Int? = nil, strength: Int? = nil) {
            self.postFilterSharpenStrength = postFilterSharpenStrength
            self.speed = speed
            self.strength = strength
        }

        public func validate(name: String) throws {
            try self.validate(self.postFilterSharpenStrength, name: "postFilterSharpenStrength", parent: name, max: 3)
            try self.validate(self.postFilterSharpenStrength, name: "postFilterSharpenStrength", parent: name, min: 0)
            try self.validate(self.speed, name: "speed", parent: name, max: 3)
            try self.validate(self.speed, name: "speed", parent: name, min: -2)
            try self.validate(self.strength, name: "strength", parent: name, max: 16)
            try self.validate(self.strength, name: "strength", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case postFilterSharpenStrength = "postFilterSharpenStrength"
            case speed = "speed"
            case strength = "strength"
        }
    }

    public struct NoiseReducerTemporalFilterSettings: AWSEncodableShape & AWSDecodableShape {
        /// Use Aggressive mode for content that has complex motion. Higher values produce stronger temporal filtering. This filters highly complex scenes more aggressively and creates better VQ for low bitrate outputs.
        public let aggressiveMode: Int?
        /// When you set Noise reducer to Temporal, the bandwidth and sharpness of your output is reduced. You can optionally use Post temporal sharpening to apply sharpening to the edges of your output. Note that Post temporal sharpening will also make the bandwidth reduction from the Noise reducer smaller. The default behavior, Auto, allows the transcoder to determine whether to apply sharpening, depending on your input type and quality. When you set Post temporal sharpening to Enabled, specify how much sharpening is applied using Post temporal sharpening strength. Set Post temporal sharpening to Disabled to not apply sharpening.
        public let postTemporalSharpening: NoiseFilterPostTemporalSharpening?
        /// Use Post temporal sharpening strength to define the amount of sharpening the transcoder applies to your output. Set Post temporal sharpening strength to Low, Medium, or High to indicate the amount of sharpening.
        public let postTemporalSharpeningStrength: NoiseFilterPostTemporalSharpeningStrength?
        /// The speed of the filter (higher number is faster). Low setting reduces bit rate at the cost of transcode time, high setting improves transcode time at the cost of bit rate.
        public let speed: Int?
        /// Specify the strength of the noise reducing filter on this output. Higher values produce stronger filtering. We recommend the following value ranges, depending on the result that you want: * 0-2 for complexity reduction with minimal sharpness loss * 2-8 for complexity reduction with image preservation * 8-16 for a high level of complexity reduction
        public let strength: Int?

        @inlinable
        public init(aggressiveMode: Int? = nil, postTemporalSharpening: NoiseFilterPostTemporalSharpening? = nil, postTemporalSharpeningStrength: NoiseFilterPostTemporalSharpeningStrength? = nil, speed: Int? = nil, strength: Int? = nil) {
            self.aggressiveMode = aggressiveMode
            self.postTemporalSharpening = postTemporalSharpening
            self.postTemporalSharpeningStrength = postTemporalSharpeningStrength
            self.speed = speed
            self.strength = strength
        }

        public func validate(name: String) throws {
            try self.validate(self.aggressiveMode, name: "aggressiveMode", parent: name, max: 4)
            try self.validate(self.aggressiveMode, name: "aggressiveMode", parent: name, min: 0)
            try self.validate(self.speed, name: "speed", parent: name, max: 3)
            try self.validate(self.speed, name: "speed", parent: name, min: -1)
            try self.validate(self.strength, name: "strength", parent: name, max: 16)
            try self.validate(self.strength, name: "strength", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case aggressiveMode = "aggressiveMode"
            case postTemporalSharpening = "postTemporalSharpening"
            case postTemporalSharpeningStrength = "postTemporalSharpeningStrength"
            case speed = "speed"
            case strength = "strength"
        }
    }

    public struct OpusSettings: AWSEncodableShape & AWSDecodableShape {
        /// Optional. Specify the average bitrate in bits per second. Valid values are multiples of 8000, from 32000 through 192000. The default value is 96000, which we recommend for quality and bandwidth.
        public let bitrate: Int?
        /// Specify the number of channels in this output audio track. Choosing Mono on gives you 1 output channel; choosing Stereo gives you 2. In the API, valid values are 1 and 2.
        public let channels: Int?
        /// Optional. Sample rate in Hz. Valid values are 16000, 24000, and 48000. The default value is 48000.
        public let sampleRate: Int?

        @inlinable
        public init(bitrate: Int? = nil, channels: Int? = nil, sampleRate: Int? = nil) {
            self.bitrate = bitrate
            self.channels = channels
            self.sampleRate = sampleRate
        }

        public func validate(name: String) throws {
            try self.validate(self.bitrate, name: "bitrate", parent: name, max: 192000)
            try self.validate(self.bitrate, name: "bitrate", parent: name, min: 32000)
            try self.validate(self.channels, name: "channels", parent: name, max: 2)
            try self.validate(self.channels, name: "channels", parent: name, min: 1)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, max: 48000)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, min: 16000)
        }

        private enum CodingKeys: String, CodingKey {
            case bitrate = "bitrate"
            case channels = "channels"
            case sampleRate = "sampleRate"
        }
    }

    public struct Output: AWSEncodableShape & AWSDecodableShape {
        /// Contains groups of audio encoding settings organized by audio codec. Include one instance of per output. Can contain multiple groups of encoding settings.
        public let audioDescriptions: [AudioDescription]?
        /// Contains groups of captions settings. For each output that has captions, include one instance of CaptionDescriptions. Can contain multiple groups of captions settings.
        public let captionDescriptions: [CaptionDescription]?
        /// Container specific settings.
        public let containerSettings: ContainerSettings?
        /// Use Extension to specify the file extension for outputs in File output groups. If you do not specify a value, the service will use default extensions by container type as follows * MPEG-2 transport stream, m2ts * Quicktime, mov * MXF container, mxf * MPEG-4 container, mp4 * WebM container, webm * Animated GIF container, gif * No Container, the service will use codec extensions (e.g. AAC, H265, H265, AC3)
        public let `extension`: String?
        /// Use Name modifier to have the service add a string to the end of each output filename. You specify the base filename as part of your destination URI. When you create multiple outputs in the same output group, Name modifier is required. Name modifier also accepts format identifiers. For DASH ISO outputs, if you use the format identifiers $Number$ or $Time$ in one output, you must use them in the same way in all outputs of the output group.
        public let nameModifier: String?
        /// Specific settings for this type of output.
        public let outputSettings: OutputSettings?
        /// Use Preset to specify a preset for your transcoding settings. Provide the system or custom preset name. You can specify either Preset or Container settings, but not both.
        public let preset: String?
        /// VideoDescription contains a group of video encoding settings. The specific video settings depend on the video codec that you choose for the property codec. Include one instance of VideoDescription per output.
        public let videoDescription: VideoDescription?

        @inlinable
        public init(audioDescriptions: [AudioDescription]? = nil, captionDescriptions: [CaptionDescription]? = nil, containerSettings: ContainerSettings? = nil, extension: String? = nil, nameModifier: String? = nil, outputSettings: OutputSettings? = nil, preset: String? = nil, videoDescription: VideoDescription? = nil) {
            self.audioDescriptions = audioDescriptions
            self.captionDescriptions = captionDescriptions
            self.containerSettings = containerSettings
            self.`extension` = `extension`
            self.nameModifier = nameModifier
            self.outputSettings = outputSettings
            self.preset = preset
            self.videoDescription = videoDescription
        }

        public func validate(name: String) throws {
            try self.audioDescriptions?.forEach {
                try $0.validate(name: "\(name).audioDescriptions[]")
            }
            try self.captionDescriptions?.forEach {
                try $0.validate(name: "\(name).captionDescriptions[]")
            }
            try self.containerSettings?.validate(name: "\(name).containerSettings")
            try self.validate(self.`extension`, name: "`extension`", parent: name, max: 256)
            try self.validate(self.nameModifier, name: "nameModifier", parent: name, max: 256)
            try self.validate(self.nameModifier, name: "nameModifier", parent: name, min: 1)
            try self.videoDescription?.validate(name: "\(name).videoDescription")
        }

        private enum CodingKeys: String, CodingKey {
            case audioDescriptions = "audioDescriptions"
            case captionDescriptions = "captionDescriptions"
            case containerSettings = "containerSettings"
            case `extension` = "extension"
            case nameModifier = "nameModifier"
            case outputSettings = "outputSettings"
            case preset = "preset"
            case videoDescription = "videoDescription"
        }
    }

    public struct OutputChannelMapping: AWSEncodableShape & AWSDecodableShape {
        /// Use this setting to specify your remix values when they are integers, such as -10, 0, or 4.
        public let inputChannels: [Int]?
        /// Use this setting to specify your remix values when they have a decimal component, such as -10.312, 0.08, or 4.9. MediaConvert rounds your remixing values to the nearest thousandth.
        public let inputChannelsFineTune: [Double]?

        @inlinable
        public init(inputChannels: [Int]? = nil, inputChannelsFineTune: [Double]? = nil) {
            self.inputChannels = inputChannels
            self.inputChannelsFineTune = inputChannelsFineTune
        }

        public func validate(name: String) throws {
            try self.inputChannels?.forEach {
                try validate($0, name: "inputChannels[]", parent: name, max: 6)
                try validate($0, name: "inputChannels[]", parent: name, min: -60)
            }
        }

        private enum CodingKeys: String, CodingKey {
            case inputChannels = "inputChannels"
            case inputChannelsFineTune = "inputChannelsFineTune"
        }
    }

    public struct OutputDetail: AWSDecodableShape {
        /// Duration in milliseconds
        public let durationInMs: Int?
        /// Contains details about the output's video stream
        public let videoDetails: VideoDetail?

        @inlinable
        public init(durationInMs: Int? = nil, videoDetails: VideoDetail? = nil) {
            self.durationInMs = durationInMs
            self.videoDetails = videoDetails
        }

        private enum CodingKeys: String, CodingKey {
            case durationInMs = "durationInMs"
            case videoDetails = "videoDetails"
        }
    }

    public struct OutputGroup: AWSEncodableShape & AWSDecodableShape {
        /// Use automated encoding to have MediaConvert choose your encoding settings for you, based on characteristics of your input video.
        public let automatedEncodingSettings: AutomatedEncodingSettings?
        /// Use Custom Group Name to specify a name for the output group. This value is displayed on the console and can make your job settings JSON more human-readable. It does not affect your outputs. Use up to twelve characters that are either letters, numbers, spaces, or underscores.
        public let customName: String?
        /// Name of the output group
        public let name: String?
        /// Output Group settings, including type
        public let outputGroupSettings: OutputGroupSettings?
        /// This object holds groups of encoding settings, one group of settings per output.
        public let outputs: [Output]?

        @inlinable
        public init(automatedEncodingSettings: AutomatedEncodingSettings? = nil, customName: String? = nil, name: String? = nil, outputGroupSettings: OutputGroupSettings? = nil, outputs: [Output]? = nil) {
            self.automatedEncodingSettings = automatedEncodingSettings
            self.customName = customName
            self.name = name
            self.outputGroupSettings = outputGroupSettings
            self.outputs = outputs
        }

        public func validate(name: String) throws {
            try self.automatedEncodingSettings?.validate(name: "\(name).automatedEncodingSettings")
            try self.validate(self.name, name: "name", parent: name, max: 2048)
            try self.outputGroupSettings?.validate(name: "\(name).outputGroupSettings")
            try self.outputs?.forEach {
                try $0.validate(name: "\(name).outputs[]")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case automatedEncodingSettings = "automatedEncodingSettings"
            case customName = "customName"
            case name = "name"
            case outputGroupSettings = "outputGroupSettings"
            case outputs = "outputs"
        }
    }

    public struct OutputGroupDetail: AWSDecodableShape {
        /// Details about the output
        public let outputDetails: [OutputDetail]?

        @inlinable
        public init(outputDetails: [OutputDetail]? = nil) {
            self.outputDetails = outputDetails
        }

        private enum CodingKeys: String, CodingKey {
            case outputDetails = "outputDetails"
        }
    }

    public struct OutputGroupSettings: AWSEncodableShape & AWSDecodableShape {
        /// Settings related to your CMAF output package. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html.
        public let cmafGroupSettings: CmafGroupSettings?
        /// Settings related to your DASH output package. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html.
        public let dashIsoGroupSettings: DashIsoGroupSettings?
        /// Settings related to your File output group. MediaConvert uses this group of settings to generate a single standalone file, rather than a streaming package.
        public let fileGroupSettings: FileGroupSettings?
        /// Settings related to your HLS output package. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html.
        public let hlsGroupSettings: HlsGroupSettings?
        /// Settings related to your Microsoft Smooth Streaming output package. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html.
        public let msSmoothGroupSettings: MsSmoothGroupSettings?
        /// Optionally choose one or more per frame metric reports to generate along with your output. You can use these metrics to analyze your video output according to one or more commonly used image quality metrics. You can specify per frame metrics for output groups or for individual outputs. When you do, MediaConvert writes a CSV (Comma-Separated Values) file to your S3 output destination, named after the output name and metric type. For example: videofile_PSNR.csv Jobs that generate per frame metrics will take longer to complete, depending on the resolution and complexity of your output. For example, some 4K jobs might take up to twice as long to complete. Note that when analyzing the video quality of your output, or when comparing the video quality of multiple different outputs, we generally also recommend a detailed visual review in a controlled environment. You can choose from the following per frame metrics: * PSNR: Peak Signal-to-Noise Ratio * SSIM: Structural Similarity Index Measure * MS_SSIM: Multi-Scale Similarity Index Measure * PSNR_HVS: Peak Signal-to-Noise Ratio, Human Visual System * VMAF: Video Multi-Method Assessment Fusion * QVBR: Quality-Defined Variable Bitrate. This option is only available when your output uses the QVBR rate control mode.
        public let perFrameMetrics: [FrameMetricType]?
        /// Type of output group (File group, Apple HLS, DASH ISO, Microsoft Smooth Streaming, CMAF)
        public let type: OutputGroupType?

        @inlinable
        public init(cmafGroupSettings: CmafGroupSettings? = nil, dashIsoGroupSettings: DashIsoGroupSettings? = nil, fileGroupSettings: FileGroupSettings? = nil, hlsGroupSettings: HlsGroupSettings? = nil, msSmoothGroupSettings: MsSmoothGroupSettings? = nil, perFrameMetrics: [FrameMetricType]? = nil, type: OutputGroupType? = nil) {
            self.cmafGroupSettings = cmafGroupSettings
            self.dashIsoGroupSettings = dashIsoGroupSettings
            self.fileGroupSettings = fileGroupSettings
            self.hlsGroupSettings = hlsGroupSettings
            self.msSmoothGroupSettings = msSmoothGroupSettings
            self.perFrameMetrics = perFrameMetrics
            self.type = type
        }

        public func validate(name: String) throws {
            try self.cmafGroupSettings?.validate(name: "\(name).cmafGroupSettings")
            try self.dashIsoGroupSettings?.validate(name: "\(name).dashIsoGroupSettings")
            try self.fileGroupSettings?.validate(name: "\(name).fileGroupSettings")
            try self.hlsGroupSettings?.validate(name: "\(name).hlsGroupSettings")
            try self.msSmoothGroupSettings?.validate(name: "\(name).msSmoothGroupSettings")
        }

        private enum CodingKeys: String, CodingKey {
            case cmafGroupSettings = "cmafGroupSettings"
            case dashIsoGroupSettings = "dashIsoGroupSettings"
            case fileGroupSettings = "fileGroupSettings"
            case hlsGroupSettings = "hlsGroupSettings"
            case msSmoothGroupSettings = "msSmoothGroupSettings"
            case perFrameMetrics = "perFrameMetrics"
            case type = "type"
        }
    }

    public struct OutputSettings: AWSEncodableShape & AWSDecodableShape {
        /// Settings for HLS output groups
        public let hlsSettings: HlsSettings?

        @inlinable
        public init(hlsSettings: HlsSettings? = nil) {
            self.hlsSettings = hlsSettings
        }

        private enum CodingKeys: String, CodingKey {
            case hlsSettings = "hlsSettings"
        }
    }

    public struct PartnerWatermarking: AWSEncodableShape & AWSDecodableShape {
        /// For forensic video watermarking, MediaConvert supports Nagra NexGuard File Marker watermarking. MediaConvert supports both PreRelease Content (NGPR/G2) and OTT Streaming workflows.
        public let nexguardFileMarkerSettings: NexGuardFileMarkerSettings?

        @inlinable
        public init(nexguardFileMarkerSettings: NexGuardFileMarkerSettings? = nil) {
            self.nexguardFileMarkerSettings = nexguardFileMarkerSettings
        }

        public func validate(name: String) throws {
            try self.nexguardFileMarkerSettings?.validate(name: "\(name).nexguardFileMarkerSettings")
        }

        private enum CodingKeys: String, CodingKey {
            case nexguardFileMarkerSettings = "nexguardFileMarkerSettings"
        }
    }

    public struct Policy: AWSEncodableShape & AWSDecodableShape {
        /// Allow or disallow jobs that specify HTTP inputs.
        public let httpInputs: InputPolicy?
        /// Allow or disallow jobs that specify HTTPS inputs.
        public let httpsInputs: InputPolicy?
        /// Allow or disallow jobs that specify Amazon S3 inputs.
        public let s3Inputs: InputPolicy?

        @inlinable
        public init(httpInputs: InputPolicy? = nil, httpsInputs: InputPolicy? = nil, s3Inputs: InputPolicy? = nil) {
            self.httpInputs = httpInputs
            self.httpsInputs = httpsInputs
            self.s3Inputs = s3Inputs
        }

        private enum CodingKeys: String, CodingKey {
            case httpInputs = "httpInputs"
            case httpsInputs = "httpsInputs"
            case s3Inputs = "s3Inputs"
        }
    }

    public struct Preset: AWSDecodableShape {
        /// An identifier for this resource that is unique within all of AWS.
        public let arn: String?
        /// An optional category you create to organize your presets.
        public let category: String?
        /// The timestamp in epoch seconds for preset creation.
        @OptionalCustomCoding<UnixEpochDateCoder>
        public var createdAt: Date?
        /// An optional description you create for each preset.
        public let description: String?
        /// The timestamp in epoch seconds when the preset was last updated.
        @OptionalCustomCoding<UnixEpochDateCoder>
        public var lastUpdated: Date?
        /// A name you create for each preset. Each name must be unique within your account.
        public let name: String?
        /// Settings for preset
        public let settings: PresetSettings?
        /// A preset can be of two types: system or custom. System or built-in preset can't be modified or deleted by the user.
        public let type: `Type`?

        @inlinable
        public init(arn: String? = nil, category: String? = nil, createdAt: Date? = nil, description: String? = nil, lastUpdated: Date? = nil, name: String? = nil, settings: PresetSettings? = nil, type: `Type`? = nil) {
            self.arn = arn
            self.category = category
            self.createdAt = createdAt
            self.description = description
            self.lastUpdated = lastUpdated
            self.name = name
            self.settings = settings
            self.type = type
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "arn"
            case category = "category"
            case createdAt = "createdAt"
            case description = "description"
            case lastUpdated = "lastUpdated"
            case name = "name"
            case settings = "settings"
            case type = "type"
        }
    }

    public struct PresetSettings: AWSEncodableShape & AWSDecodableShape {
        /// Contains groups of audio encoding settings organized by audio codec. Include one instance of per output. Can contain multiple groups of encoding settings.
        public let audioDescriptions: [AudioDescription]?
        /// This object holds groups of settings related to captions for one output. For each output that has captions, include one instance of CaptionDescriptions.
        public let captionDescriptions: [CaptionDescriptionPreset]?
        /// Container specific settings.
        public let containerSettings: ContainerSettings?
        /// VideoDescription contains a group of video encoding settings. The specific video settings depend on the video codec that you choose for the property codec. Include one instance of VideoDescription per output.
        public let videoDescription: VideoDescription?

        @inlinable
        public init(audioDescriptions: [AudioDescription]? = nil, captionDescriptions: [CaptionDescriptionPreset]? = nil, containerSettings: ContainerSettings? = nil, videoDescription: VideoDescription? = nil) {
            self.audioDescriptions = audioDescriptions
            self.captionDescriptions = captionDescriptions
            self.containerSettings = containerSettings
            self.videoDescription = videoDescription
        }

        public func validate(name: String) throws {
            try self.audioDescriptions?.forEach {
                try $0.validate(name: "\(name).audioDescriptions[]")
            }
            try self.captionDescriptions?.forEach {
                try $0.validate(name: "\(name).captionDescriptions[]")
            }
            try self.containerSettings?.validate(name: "\(name).containerSettings")
            try self.videoDescription?.validate(name: "\(name).videoDescription")
        }

        private enum CodingKeys: String, CodingKey {
            case audioDescriptions = "audioDescriptions"
            case captionDescriptions = "captionDescriptions"
            case containerSettings = "containerSettings"
            case videoDescription = "videoDescription"
        }
    }

    public struct ProbeInputFile: AWSEncodableShape {
        /// Specify the S3, HTTP, or HTTPS URL for your media file.
        public let fileUrl: String?

        @inlinable
        public init(fileUrl: String? = nil) {
            self.fileUrl = fileUrl
        }

        private enum CodingKeys: String, CodingKey {
            case fileUrl = "fileUrl"
        }
    }

    public struct ProbeRequest: AWSEncodableShape {
        /// Specify a media file to probe.
        public let inputFiles: [ProbeInputFile]?

        @inlinable
        public init(inputFiles: [ProbeInputFile]? = nil) {
            self.inputFiles = inputFiles
        }

        private enum CodingKeys: String, CodingKey {
            case inputFiles = "inputFiles"
        }
    }

    public struct ProbeResponse: AWSDecodableShape {
        /// Probe results for your media file.
        public let probeResults: [ProbeResult]?

        @inlinable
        public init(probeResults: [ProbeResult]? = nil) {
            self.probeResults = probeResults
        }

        private enum CodingKeys: String, CodingKey {
            case probeResults = "probeResults"
        }
    }

    public struct ProbeResult: AWSDecodableShape {
        /// The container of your media file. This information helps you understand the overall structure and details of your media, including format, duration, and track layout.
        public let container: Container?
        /// Metadata and other file information.
        public let metadata: Metadata?
        /// An array containing track mapping information.
        public let trackMappings: [TrackMapping]?

        @inlinable
        public init(container: Container? = nil, metadata: Metadata? = nil, trackMappings: [TrackMapping]? = nil) {
            self.container = container
            self.metadata = metadata
            self.trackMappings = trackMappings
        }

        private enum CodingKeys: String, CodingKey {
            case container = "container"
            case metadata = "metadata"
            case trackMappings = "trackMappings"
        }
    }

    public struct ProresSettings: AWSEncodableShape & AWSDecodableShape {
        /// This setting applies only to ProRes 4444 and ProRes 4444 XQ outputs that you create from inputs that use 4:4:4 chroma sampling. Set Preserve 4:4:4 sampling to allow outputs to also use 4:4:4 chroma sampling. You must specify a value for this setting when your output codec profile supports 4:4:4 chroma sampling. Related Settings: For Apple ProRes outputs with 4:4:4 chroma sampling: Choose Preserve 4:4:4 sampling. Use when your input has 4:4:4 chroma sampling and your output codec Profile is Apple ProRes 4444 or 4444 XQ. Note that when you choose Preserve 4:4:4 sampling, you cannot include any of the following Preprocessors: Dolby Vision, HDR10+, or Noise reducer.
        public let chromaSampling: ProresChromaSampling?
        /// Use Profile to specify the type of Apple ProRes codec to use for this output.
        public let codecProfile: ProresCodecProfile?
        /// If you are using the console, use the Framerate setting to specify the frame rate for this output. If you want to keep the same frame rate as the input video, choose Follow source. If you want to do frame rate conversion, choose a frame rate from the dropdown list or choose Custom. The framerates shown in the dropdown list are decimal approximations of fractions. If you choose Custom, specify your frame rate as a fraction.
        public let framerateControl: ProresFramerateControl?
        /// Choose the method that you want MediaConvert to use when increasing or decreasing your video's frame rate. For numerically simple conversions, such as 60 fps to 30 fps: We recommend that you keep the default value, Drop duplicate. For numerically complex conversions, to avoid stutter: Choose Interpolate. This results in a smooth picture, but might introduce undesirable video artifacts. For complex frame rate conversions, especially if your source video has already been converted from its original cadence: Choose FrameFormer to do motion-compensated interpolation. FrameFormer uses the best conversion method frame by frame. Note that using FrameFormer increases the transcoding time and incurs a significant add-on cost. When you choose FrameFormer, your input video resolution must be at least 128x96. To create an output with the same number of frames as your input: Choose Maintain frame count. When you do, MediaConvert will not drop, interpolate, add, or otherwise change the frame count from your input to your output. Note that since the frame count is maintained, the duration of your output will become shorter at higher frame rates and longer at lower frame rates.
        public let framerateConversionAlgorithm: ProresFramerateConversionAlgorithm?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateDenominator to specify the denominator of this fraction. In this example, use 1001 for the value of FramerateDenominator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateDenominator: Int?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateNumerator to specify the numerator of this fraction. In this example, use 24000 for the value of FramerateNumerator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateNumerator: Int?
        /// Choose the scan line type for the output. Keep the default value, Progressive to create a progressive output, regardless of the scan type of your input. Use Top field first or Bottom field first to create an output that's interlaced with the same field polarity throughout. Use Follow, default top or Follow, default bottom to produce outputs with the same field polarity as the source. For jobs that have multiple inputs, the output field polarity might change over the course of the output. Follow behavior depends on the input scan type. If the source is interlaced, the output will be interlaced with the same polarity as the source. If the source is progressive, the output will be interlaced with top field bottom field first, depending on which of the Follow options you choose.
        public let interlaceMode: ProresInterlaceMode?
        /// Optional. Specify how the service determines the pixel aspect ratio (PAR) for this output. The default behavior, Follow source, uses the PAR from your input video for your output. To specify a different PAR, choose any value other than Follow source. When you choose SPECIFIED for this setting, you must also specify values for the parNumerator and parDenominator settings.
        public let parControl: ProresParControl?
        /// Required when you set Pixel aspect ratio to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parDenominator is 33.
        public let parDenominator: Int?
        /// Required when you set Pixel aspect ratio to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parNumerator is 40.
        public let parNumerator: Int?
        /// Optionally choose one or more per frame metric reports to generate along with your output. You can use these metrics to analyze your video output according to one or more commonly used image quality metrics. You can specify per frame metrics for output groups or for individual outputs. When you do, MediaConvert writes a CSV (Comma-Separated Values) file to your S3 output destination, named after the output name and metric type. For example: videofile_PSNR.csv Jobs that generate per frame metrics will take longer to complete, depending on the resolution and complexity of your output. For example, some 4K jobs might take up to twice as long to complete. Note that when analyzing the video quality of your output, or when comparing the video quality of multiple different outputs, we generally also recommend a detailed visual review in a controlled environment. You can choose from the following per frame metrics: * PSNR: Peak Signal-to-Noise Ratio * SSIM: Structural Similarity Index Measure * MS_SSIM: Multi-Scale Similarity Index Measure * PSNR_HVS: Peak Signal-to-Noise Ratio, Human Visual System * VMAF: Video Multi-Method Assessment Fusion * QVBR: Quality-Defined Variable Bitrate. This option is only available when your output uses the QVBR rate control mode.
        public let perFrameMetrics: [FrameMetricType]?
        /// Use this setting for interlaced outputs, when your output frame rate is half of your input frame rate. In this situation, choose Optimized interlacing to create a better quality interlaced output. In this case, each progressive frame from the input corresponds to an interlaced field in the output. Keep the default value, Basic interlacing, for all other output frame rates. With basic interlacing, MediaConvert performs any frame rate conversion first and then interlaces the frames. When you choose Optimized interlacing and you set your output frame rate to a value that isn't suitable for optimized interlacing, MediaConvert automatically falls back to basic interlacing. Required settings: To use optimized interlacing, you must set Telecine to None or Soft. You can't use optimized interlacing for hard telecine outputs. You must also set Interlace mode to a value other than Progressive.
        public let scanTypeConversionMode: ProresScanTypeConversionMode?
        /// Ignore this setting unless your input frame rate is 23.976 or 24 frames per second (fps). Enable slow PAL to create a 25 fps output. When you enable slow PAL, MediaConvert relabels the video frames to 25 fps and resamples your audio to keep it synchronized with the video. Note that enabling this setting will slightly reduce the duration of your video. Required settings: You must also set Framerate to 25.
        public let slowPal: ProresSlowPal?
        /// When you do frame rate conversion from 23.976 frames per second (fps) to 29.97 fps, and your output scan type is interlaced, you can optionally enable hard telecine to create a smoother picture. When you keep the default value, None, MediaConvert does a standard frame rate conversion to 29.97 without doing anything with the field polarity to create a smoother picture.
        public let telecine: ProresTelecine?

        @inlinable
        public init(chromaSampling: ProresChromaSampling? = nil, codecProfile: ProresCodecProfile? = nil, framerateControl: ProresFramerateControl? = nil, framerateConversionAlgorithm: ProresFramerateConversionAlgorithm? = nil, framerateDenominator: Int? = nil, framerateNumerator: Int? = nil, interlaceMode: ProresInterlaceMode? = nil, parControl: ProresParControl? = nil, parDenominator: Int? = nil, parNumerator: Int? = nil, perFrameMetrics: [FrameMetricType]? = nil, scanTypeConversionMode: ProresScanTypeConversionMode? = nil, slowPal: ProresSlowPal? = nil, telecine: ProresTelecine? = nil) {
            self.chromaSampling = chromaSampling
            self.codecProfile = codecProfile
            self.framerateControl = framerateControl
            self.framerateConversionAlgorithm = framerateConversionAlgorithm
            self.framerateDenominator = framerateDenominator
            self.framerateNumerator = framerateNumerator
            self.interlaceMode = interlaceMode
            self.parControl = parControl
            self.parDenominator = parDenominator
            self.parNumerator = parNumerator
            self.perFrameMetrics = perFrameMetrics
            self.scanTypeConversionMode = scanTypeConversionMode
            self.slowPal = slowPal
            self.telecine = telecine
        }

        public func validate(name: String) throws {
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, max: 2147483647)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, min: 1)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, max: 2147483647)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, min: 1)
            try self.validate(self.parDenominator, name: "parDenominator", parent: name, max: 2147483647)
            try self.validate(self.parDenominator, name: "parDenominator", parent: name, min: 1)
            try self.validate(self.parNumerator, name: "parNumerator", parent: name, max: 2147483647)
            try self.validate(self.parNumerator, name: "parNumerator", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case chromaSampling = "chromaSampling"
            case codecProfile = "codecProfile"
            case framerateControl = "framerateControl"
            case framerateConversionAlgorithm = "framerateConversionAlgorithm"
            case framerateDenominator = "framerateDenominator"
            case framerateNumerator = "framerateNumerator"
            case interlaceMode = "interlaceMode"
            case parControl = "parControl"
            case parDenominator = "parDenominator"
            case parNumerator = "parNumerator"
            case perFrameMetrics = "perFrameMetrics"
            case scanTypeConversionMode = "scanTypeConversionMode"
            case slowPal = "slowPal"
            case telecine = "telecine"
        }
    }

    public struct PutPolicyRequest: AWSEncodableShape {
        /// A policy configures behavior that you allow or disallow for your account. For information about MediaConvert policies, see the user guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
        public let policy: Policy?

        @inlinable
        public init(policy: Policy? = nil) {
            self.policy = policy
        }

        private enum CodingKeys: String, CodingKey {
            case policy = "policy"
        }
    }

    public struct PutPolicyResponse: AWSDecodableShape {
        /// A policy configures behavior that you allow or disallow for your account. For information about MediaConvert policies, see the user guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
        public let policy: Policy?

        @inlinable
        public init(policy: Policy? = nil) {
            self.policy = policy
        }

        private enum CodingKeys: String, CodingKey {
            case policy = "policy"
        }
    }

    public struct Queue: AWSDecodableShape {
        /// An identifier for this resource that is unique within all of AWS.
        public let arn: String?
        /// The maximum number of jobs your queue can process concurrently.
        public let concurrentJobs: Int?
        /// The timestamp in epoch seconds for when you created the queue.
        @OptionalCustomCoding<UnixEpochDateCoder>
        public var createdAt: Date?
        /// An optional description that you create for each queue.
        public let description: String?
        /// The timestamp in epoch seconds for when you most recently updated the queue.
        @OptionalCustomCoding<UnixEpochDateCoder>
        public var lastUpdated: Date?
        /// A name that you create for each queue. Each name must be unique within your account.
        public let name: String?
        /// Specifies whether the pricing plan for the queue is on-demand or reserved. For on-demand, you pay per minute, billed in increments of .01 minute. For reserved, you pay for the transcoding capacity of the entire queue, regardless of how much or how little you use it. Reserved pricing requires a 12-month commitment.
        public let pricingPlan: PricingPlan?
        /// The estimated number of jobs with a PROGRESSING status.
        public let progressingJobsCount: Int?
        /// Details about the pricing plan for your reserved queue. Required for reserved queues and not applicable to on-demand queues.
        public let reservationPlan: ReservationPlan?
        /// A list of any service overrides applied by MediaConvert to the settings that you have configured. If you see any overrides, we recommend that you contact AWS Support.
        public let serviceOverrides: [ServiceOverride]?
        /// Queues can be ACTIVE or PAUSED. If you pause a queue, the service won't begin processing jobs in that queue. Jobs that are running when you pause the queue continue to run until they finish or result in an error.
        public let status: QueueStatus?
        /// The estimated number of jobs with a SUBMITTED status.
        public let submittedJobsCount: Int?
        /// Specifies whether this on-demand queue is system or custom. System queues are built in. You can't modify or delete system queues. You can create and modify custom queues.
        public let type: `Type`?

        @inlinable
        public init(arn: String? = nil, concurrentJobs: Int? = nil, createdAt: Date? = nil, description: String? = nil, lastUpdated: Date? = nil, name: String? = nil, pricingPlan: PricingPlan? = nil, progressingJobsCount: Int? = nil, reservationPlan: ReservationPlan? = nil, serviceOverrides: [ServiceOverride]? = nil, status: QueueStatus? = nil, submittedJobsCount: Int? = nil, type: `Type`? = nil) {
            self.arn = arn
            self.concurrentJobs = concurrentJobs
            self.createdAt = createdAt
            self.description = description
            self.lastUpdated = lastUpdated
            self.name = name
            self.pricingPlan = pricingPlan
            self.progressingJobsCount = progressingJobsCount
            self.reservationPlan = reservationPlan
            self.serviceOverrides = serviceOverrides
            self.status = status
            self.submittedJobsCount = submittedJobsCount
            self.type = type
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "arn"
            case concurrentJobs = "concurrentJobs"
            case createdAt = "createdAt"
            case description = "description"
            case lastUpdated = "lastUpdated"
            case name = "name"
            case pricingPlan = "pricingPlan"
            case progressingJobsCount = "progressingJobsCount"
            case reservationPlan = "reservationPlan"
            case serviceOverrides = "serviceOverrides"
            case status = "status"
            case submittedJobsCount = "submittedJobsCount"
            case type = "type"
        }
    }

    public struct QueueTransition: AWSDecodableShape {
        /// The queue that the job was on after the transition.
        public let destinationQueue: String?
        /// The queue that the job was on before the transition.
        public let sourceQueue: String?
        /// The time, in Unix epoch format, that the job moved from the source queue to the destination queue.
        @OptionalCustomCoding<UnixEpochDateCoder>
        public var timestamp: Date?

        @inlinable
        public init(destinationQueue: String? = nil, sourceQueue: String? = nil, timestamp: Date? = nil) {
            self.destinationQueue = destinationQueue
            self.sourceQueue = sourceQueue
            self.timestamp = timestamp
        }

        private enum CodingKeys: String, CodingKey {
            case destinationQueue = "destinationQueue"
            case sourceQueue = "sourceQueue"
            case timestamp = "timestamp"
        }
    }

    public struct Rectangle: AWSEncodableShape & AWSDecodableShape {
        /// Height of rectangle in pixels. Specify only even numbers.
        public let height: Int?
        /// Width of rectangle in pixels. Specify only even numbers.
        public let width: Int?
        /// The distance, in pixels, between the rectangle and the left edge of the video frame. Specify only even numbers.
        public let x: Int?
        /// The distance, in pixels, between the rectangle and the top edge of the video frame. Specify only even numbers.
        public let y: Int?

        @inlinable
        public init(height: Int? = nil, width: Int? = nil, x: Int? = nil, y: Int? = nil) {
            self.height = height
            self.width = width
            self.x = x
            self.y = y
        }

        public func validate(name: String) throws {
            try self.validate(self.height, name: "height", parent: name, max: 2147483647)
            try self.validate(self.height, name: "height", parent: name, min: 2)
            try self.validate(self.width, name: "width", parent: name, max: 2147483647)
            try self.validate(self.width, name: "width", parent: name, min: 2)
            try self.validate(self.x, name: "x", parent: name, max: 2147483647)
            try self.validate(self.x, name: "x", parent: name, min: 0)
            try self.validate(self.y, name: "y", parent: name, max: 2147483647)
            try self.validate(self.y, name: "y", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case height = "height"
            case width = "width"
            case x = "x"
            case y = "y"
        }
    }

    public struct RemixSettings: AWSEncodableShape & AWSDecodableShape {
        /// Optionally specify the channel in your input that contains your audio description audio signal. MediaConvert mixes your audio signal across all output channels, while reducing their volume according to your data stream. When you specify an audio description audio channel, you must also specify an audio description data channel. For more information about audio description signals, see the BBC WHP 198 and 051 white papers.
        public let audioDescriptionAudioChannel: Int?
        /// Optionally specify the channel in your input that contains your audio description data stream. MediaConvert mixes your audio signal across all output channels, while reducing their volume according to your data stream. When you specify an audio description data channel, you must also specify an audio description audio channel. For more information about audio description signals, see the BBC WHP 198 and 051 white papers.
        public let audioDescriptionDataChannel: Int?
        /// Channel mapping contains the group of fields that hold the remixing value for each channel, in dB. Specify remix values to indicate how much of the content from your input audio channel you want in your output audio channels. Each instance of the InputChannels or InputChannelsFineTune array specifies these values for one output channel. Use one instance of this array for each output channel. In the console, each array corresponds to a column in the graphical depiction of the mapping matrix. The rows of the graphical matrix correspond to input channels. Valid values are within the range from -60 (mute) through 6. A setting of 0 passes the input channel unchanged to the output channel (no attenuation or amplification). Use InputChannels or InputChannelsFineTune to specify your remix values. Don't use both.
        public let channelMapping: ChannelMapping?
        /// Specify the number of audio channels from your input that you want to use in your output. With remixing, you might combine or split the data in these channels, so the number of channels in your final output might be different. If you are doing both input channel mapping and output channel mapping, the number of output channels in your input mapping must be the same as the number of input channels in your output mapping.
        public let channelsIn: Int?
        /// Specify the number of channels in this output after remixing. Valid values: 1, 2, 4, 6, 8... 64. (1 and even numbers to 64.) If you are doing both input channel mapping and output channel mapping, the number of output channels in your input mapping must be the same as the number of input channels in your output mapping.
        public let channelsOut: Int?

        @inlinable
        public init(audioDescriptionAudioChannel: Int? = nil, audioDescriptionDataChannel: Int? = nil, channelMapping: ChannelMapping? = nil, channelsIn: Int? = nil, channelsOut: Int? = nil) {
            self.audioDescriptionAudioChannel = audioDescriptionAudioChannel
            self.audioDescriptionDataChannel = audioDescriptionDataChannel
            self.channelMapping = channelMapping
            self.channelsIn = channelsIn
            self.channelsOut = channelsOut
        }

        public func validate(name: String) throws {
            try self.validate(self.audioDescriptionAudioChannel, name: "audioDescriptionAudioChannel", parent: name, max: 64)
            try self.validate(self.audioDescriptionAudioChannel, name: "audioDescriptionAudioChannel", parent: name, min: 1)
            try self.validate(self.audioDescriptionDataChannel, name: "audioDescriptionDataChannel", parent: name, max: 64)
            try self.validate(self.audioDescriptionDataChannel, name: "audioDescriptionDataChannel", parent: name, min: 1)
            try self.channelMapping?.validate(name: "\(name).channelMapping")
            try self.validate(self.channelsIn, name: "channelsIn", parent: name, max: 64)
            try self.validate(self.channelsIn, name: "channelsIn", parent: name, min: 1)
            try self.validate(self.channelsOut, name: "channelsOut", parent: name, max: 64)
            try self.validate(self.channelsOut, name: "channelsOut", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case audioDescriptionAudioChannel = "audioDescriptionAudioChannel"
            case audioDescriptionDataChannel = "audioDescriptionDataChannel"
            case channelMapping = "channelMapping"
            case channelsIn = "channelsIn"
            case channelsOut = "channelsOut"
        }
    }

    public struct ReservationPlan: AWSDecodableShape {
        /// The length of the term of your reserved queue pricing plan commitment.
        public let commitment: Commitment?
        /// The timestamp in epoch seconds for when the current pricing plan term for this reserved queue expires.
        @OptionalCustomCoding<UnixEpochDateCoder>
        public var expiresAt: Date?
        /// The timestamp in epoch seconds for when you set up the current pricing plan for this reserved queue.
        @OptionalCustomCoding<UnixEpochDateCoder>
        public var purchasedAt: Date?
        /// Specifies whether the term of your reserved queue pricing plan is automatically extended (AUTO_RENEW) or expires (EXPIRE) at the end of the term.
        public let renewalType: RenewalType?
        /// Specifies the number of reserved transcode slots (RTS) for this queue. The number of RTS determines how many jobs the queue can process in parallel; each RTS can process one job at a time. When you increase this number, you extend your existing commitment with a new 12-month commitment for a larger number of RTS. The new commitment begins when you purchase the additional capacity. You can't decrease the number of RTS in your reserved queue.
        public let reservedSlots: Int?
        /// Specifies whether the pricing plan for your reserved queue is ACTIVE or EXPIRED.
        public let status: ReservationPlanStatus?

        @inlinable
        public init(commitment: Commitment? = nil, expiresAt: Date? = nil, purchasedAt: Date? = nil, renewalType: RenewalType? = nil, reservedSlots: Int? = nil, status: ReservationPlanStatus? = nil) {
            self.commitment = commitment
            self.expiresAt = expiresAt
            self.purchasedAt = purchasedAt
            self.renewalType = renewalType
            self.reservedSlots = reservedSlots
            self.status = status
        }

        private enum CodingKeys: String, CodingKey {
            case commitment = "commitment"
            case expiresAt = "expiresAt"
            case purchasedAt = "purchasedAt"
            case renewalType = "renewalType"
            case reservedSlots = "reservedSlots"
            case status = "status"
        }
    }

    public struct ReservationPlanSettings: AWSEncodableShape {
        /// The length of the term of your reserved queue pricing plan commitment.
        public let commitment: Commitment?
        /// Specifies whether the term of your reserved queue pricing plan is automatically extended (AUTO_RENEW) or expires (EXPIRE) at the end of the term. When your term is auto renewed, you extend your commitment by 12 months from the auto renew date. You can cancel this commitment.
        public let renewalType: RenewalType?
        /// Specifies the number of reserved transcode slots (RTS) for this queue. The number of RTS determines how many jobs the queue can process in parallel; each RTS can process one job at a time. You can't decrease the number of RTS in your reserved queue. You can increase the number of RTS by extending your existing commitment with a new 12-month commitment for the larger number. The new commitment begins when you purchase the additional capacity. You can't cancel your commitment or revert to your original commitment after you increase the capacity.
        public let reservedSlots: Int?

        @inlinable
        public init(commitment: Commitment? = nil, renewalType: RenewalType? = nil, reservedSlots: Int? = nil) {
            self.commitment = commitment
            self.renewalType = renewalType
            self.reservedSlots = reservedSlots
        }

        private enum CodingKeys: String, CodingKey {
            case commitment = "commitment"
            case renewalType = "renewalType"
            case reservedSlots = "reservedSlots"
        }
    }

    public struct ResourceTags: AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of the resource.
        public let arn: String?
        /// The tags for the resource.
        public let tags: [String: String]?

        @inlinable
        public init(arn: String? = nil, tags: [String: String]? = nil) {
            self.arn = arn
            self.tags = tags
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "arn"
            case tags = "tags"
        }
    }

    public struct S3DestinationAccessControl: AWSEncodableShape & AWSDecodableShape {
        /// Choose an Amazon S3 canned ACL for MediaConvert to apply to this output.
        public let cannedAcl: S3ObjectCannedAcl?

        @inlinable
        public init(cannedAcl: S3ObjectCannedAcl? = nil) {
            self.cannedAcl = cannedAcl
        }

        private enum CodingKeys: String, CodingKey {
            case cannedAcl = "cannedAcl"
        }
    }

    public struct S3DestinationSettings: AWSEncodableShape & AWSDecodableShape {
        /// Optional. Have MediaConvert automatically apply Amazon S3 access control for the outputs in this output group. When you don't use this setting, S3 automatically applies the default access control list PRIVATE.
        public let accessControl: S3DestinationAccessControl?
        /// Settings for how your job outputs are encrypted as they are uploaded to Amazon S3.
        public let encryption: S3EncryptionSettings?
        /// Specify the S3 storage class to use for this output. To use your destination's default storage class: Keep the default value, Not set. For more information about S3 storage classes, see https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-class-intro.html
        public let storageClass: S3StorageClass?

        @inlinable
        public init(accessControl: S3DestinationAccessControl? = nil, encryption: S3EncryptionSettings? = nil, storageClass: S3StorageClass? = nil) {
            self.accessControl = accessControl
            self.encryption = encryption
            self.storageClass = storageClass
        }

        public func validate(name: String) throws {
            try self.encryption?.validate(name: "\(name).encryption")
        }

        private enum CodingKeys: String, CodingKey {
            case accessControl = "accessControl"
            case encryption = "encryption"
            case storageClass = "storageClass"
        }
    }

    public struct S3EncryptionSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify how you want your data keys managed. AWS uses data keys to encrypt your content. AWS also encrypts the data keys themselves, using a customer master key (CMK), and then stores the encrypted data keys alongside your encrypted content. Use this setting to specify which AWS service manages the CMK. For simplest set up, choose Amazon S3. If you want your master key to be managed by AWS Key Management Service (KMS), choose AWS KMS. By default, when you choose AWS KMS, KMS uses the AWS managed customer master key (CMK) associated with Amazon S3 to encrypt your data keys. You can optionally choose to specify a different, customer managed CMK. Do so by specifying the Amazon Resource Name (ARN) of the key for the setting KMS ARN.
        public let encryptionType: S3ServerSideEncryptionType?
        /// Optionally, specify the encryption context that you want to use alongside your KMS key. AWS KMS uses this encryption context as additional authenticated data (AAD) to support authenticated encryption. This value must be a base64-encoded UTF-8 string holding JSON which represents a string-string map. To use this setting, you must also set Server-side encryption to AWS KMS. For more information about encryption context, see: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context.
        public let kmsEncryptionContext: String?
        /// Optionally, specify the customer master key (CMK) that you want to use to encrypt the data key that AWS uses to encrypt your output content. Enter the Amazon Resource Name (ARN) of the CMK. To use this setting, you must also set Server-side encryption to AWS KMS. If you set Server-side encryption to AWS KMS but don't specify a CMK here, AWS uses the AWS managed CMK associated with Amazon S3.
        public let kmsKeyArn: String?

        @inlinable
        public init(encryptionType: S3ServerSideEncryptionType? = nil, kmsEncryptionContext: String? = nil, kmsKeyArn: String? = nil) {
            self.encryptionType = encryptionType
            self.kmsEncryptionContext = kmsEncryptionContext
            self.kmsKeyArn = kmsKeyArn
        }

        public func validate(name: String) throws {
            try self.validate(self.kmsEncryptionContext, name: "kmsEncryptionContext", parent: name, pattern: "^[A-Za-z0-9+\\/]+={0,2}$")
            try self.validate(self.kmsKeyArn, name: "kmsKeyArn", parent: name, pattern: "^arn:aws(-us-gov|-cn)?:kms:[a-z-]{2,6}-(east|west|central|((north|south)(east|west)?))-[1-9]{1,2}:\\d{12}:key/([a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}|mrk-[a-fA-F0-9]{32})$")
        }

        private enum CodingKeys: String, CodingKey {
            case encryptionType = "encryptionType"
            case kmsEncryptionContext = "kmsEncryptionContext"
            case kmsKeyArn = "kmsKeyArn"
        }
    }

    public struct SccDestinationSettings: AWSEncodableShape & AWSDecodableShape {
        /// Set Framerate to make sure that the captions and the video are synchronized in the output. Specify a frame rate that matches the frame rate of the associated video. If the video frame rate is 29.97, choose 29.97 dropframe only if the video has video_insertion=true and drop_frame_timecode=true; otherwise, choose 29.97 non-dropframe.
        public let framerate: SccDestinationFramerate?

        @inlinable
        public init(framerate: SccDestinationFramerate? = nil) {
            self.framerate = framerate
        }

        private enum CodingKeys: String, CodingKey {
            case framerate = "framerate"
        }
    }

    public struct SearchJobsRequest: AWSEncodableShape {
        /// Optional. Provide your input file URL or your partial input file name. The maximum length for an input file is 300 characters.
        public let inputFile: String?
        /// Optional. Number of jobs, up to twenty, that will be returned at one time.
        public let maxResults: Int?
        /// Optional. Use this string, provided with the response to a previous request, to request the next batch of jobs.
        public let nextToken: String?
        /// Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource.
        public let order: Order?
        /// Optional. Provide a queue name, or a queue ARN, to return only jobs from that queue.
        public let queue: String?
        /// Optional. A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.
        public let status: JobStatus?

        @inlinable
        public init(inputFile: String? = nil, maxResults: Int? = nil, nextToken: String? = nil, order: Order? = nil, queue: String? = nil, status: JobStatus? = nil) {
            self.inputFile = inputFile
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.order = order
            self.queue = queue
            self.status = status
        }

        public func encode(to encoder: Encoder) throws {
            let request = encoder.userInfo[.awsRequest]! as! RequestEncodingContainer
            _ = encoder.container(keyedBy: CodingKeys.self)
            request.encodeQuery(self.inputFile, key: "inputFile")
            request.encodeQuery(self.maxResults, key: "maxResults")
            request.encodeQuery(self.nextToken, key: "nextToken")
            request.encodeQuery(self.order, key: "order")
            request.encodeQuery(self.queue, key: "queue")
            request.encodeQuery(self.status, key: "status")
        }

        public func validate(name: String) throws {
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 20)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
        }

        private enum CodingKeys: CodingKey {}
    }

    public struct SearchJobsResponse: AWSDecodableShape {
        /// List of jobs.
        public let jobs: [Job]?
        /// Use this string to request the next batch of jobs.
        public let nextToken: String?

        @inlinable
        public init(jobs: [Job]? = nil, nextToken: String? = nil) {
            self.jobs = jobs
            self.nextToken = nextToken
        }

        private enum CodingKeys: String, CodingKey {
            case jobs = "jobs"
            case nextToken = "nextToken"
        }
    }

    public struct ServiceOverride: AWSDecodableShape {
        /// Details about the service override that MediaConvert has applied.
        public let message: String?
        /// The name of the setting that MediaConvert has applied an override to.
        public let name: String?
        /// The current value of the service override that MediaConvert has applied.
        public let overrideValue: String?
        /// The value of the setting that you configured, prior to any overrides that MediaConvert has applied.
        public let value: String?

        @inlinable
        public init(message: String? = nil, name: String? = nil, overrideValue: String? = nil, value: String? = nil) {
            self.message = message
            self.name = name
            self.overrideValue = overrideValue
            self.value = value
        }

        private enum CodingKeys: String, CodingKey {
            case message = "message"
            case name = "name"
            case overrideValue = "overrideValue"
            case value = "value"
        }
    }

    public struct SpekeKeyProvider: AWSEncodableShape & AWSDecodableShape {
        /// If you want your key provider to encrypt the content keys that it provides to MediaConvert, set up a certificate with a master key using AWS Certificate Manager. Specify the certificate's Amazon Resource Name (ARN) here.
        public let certificateArn: String?
        /// Specify the SPEKE version, either v1.0 or v2.0, that MediaConvert uses when encrypting your output. For more information, see: https://docs.aws.amazon.com/speke/latest/documentation/speke-api-specification.html To use SPEKE v1.0: Leave blank. To use SPEKE v2.0: Specify a SPEKE v2.0 video preset and a SPEKE v2.0 audio preset.
        public let encryptionContractConfiguration: EncryptionContractConfiguration?
        /// Specify the resource ID that your SPEKE-compliant key provider uses to identify this content.
        public let resourceId: String?
        /// Relates to SPEKE implementation. DRM system identifiers. DASH output groups support a max of two system ids. HLS output groups support a max of 3 system ids. Other group types support one system id. See https://dashif.org/identifiers/content_protection/ for more details.
        public let systemIds: [String]?
        /// Specify the URL to the key server that your SPEKE-compliant DRM key provider uses to provide keys for encrypting your content.
        public let url: String?

        @inlinable
        public init(certificateArn: String? = nil, encryptionContractConfiguration: EncryptionContractConfiguration? = nil, resourceId: String? = nil, systemIds: [String]? = nil, url: String? = nil) {
            self.certificateArn = certificateArn
            self.encryptionContractConfiguration = encryptionContractConfiguration
            self.resourceId = resourceId
            self.systemIds = systemIds
            self.url = url
        }

        public func validate(name: String) throws {
            try self.validate(self.certificateArn, name: "certificateArn", parent: name, pattern: "^arn:aws(-us-gov)?:acm:$")
            try self.systemIds?.forEach {
                try validate($0, name: "systemIds[]", parent: name, pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$")
            }
            try self.validate(self.url, name: "url", parent: name, pattern: "^https:\\/\\/[^:@\\/]*(:\\d*)?(\\/.*)?$")
        }

        private enum CodingKeys: String, CodingKey {
            case certificateArn = "certificateArn"
            case encryptionContractConfiguration = "encryptionContractConfiguration"
            case resourceId = "resourceId"
            case systemIds = "systemIds"
            case url = "url"
        }
    }

    public struct SpekeKeyProviderCmaf: AWSEncodableShape & AWSDecodableShape {
        /// If you want your key provider to encrypt the content keys that it provides to MediaConvert, set up a certificate with a master key using AWS Certificate Manager. Specify the certificate's Amazon Resource Name (ARN) here.
        public let certificateArn: String?
        /// Specify the DRM system IDs that you want signaled in the DASH manifest that MediaConvert creates as part of this CMAF package. The DASH manifest can currently signal up to three system IDs. For more information, see https://dashif.org/identifiers/content_protection/.
        public let dashSignaledSystemIds: [String]?
        /// Specify the SPEKE version, either v1.0 or v2.0, that MediaConvert uses when encrypting your output. For more information, see: https://docs.aws.amazon.com/speke/latest/documentation/speke-api-specification.html To use SPEKE v1.0: Leave blank. To use SPEKE v2.0: Specify a SPEKE v2.0 video preset and a SPEKE v2.0 audio preset.
        public let encryptionContractConfiguration: EncryptionContractConfiguration?
        /// Specify up to 3 DRM system IDs that you want signaled in the HLS manifest that MediaConvert creates as part of this CMAF package. For more information, see https://dashif.org/identifiers/content_protection/.
        public let hlsSignaledSystemIds: [String]?
        /// Specify the resource ID that your SPEKE-compliant key provider uses to identify this content.
        public let resourceId: String?
        /// Specify the URL to the key server that your SPEKE-compliant DRM key provider uses to provide keys for encrypting your content.
        public let url: String?

        @inlinable
        public init(certificateArn: String? = nil, dashSignaledSystemIds: [String]? = nil, encryptionContractConfiguration: EncryptionContractConfiguration? = nil, hlsSignaledSystemIds: [String]? = nil, resourceId: String? = nil, url: String? = nil) {
            self.certificateArn = certificateArn
            self.dashSignaledSystemIds = dashSignaledSystemIds
            self.encryptionContractConfiguration = encryptionContractConfiguration
            self.hlsSignaledSystemIds = hlsSignaledSystemIds
            self.resourceId = resourceId
            self.url = url
        }

        public func validate(name: String) throws {
            try self.validate(self.certificateArn, name: "certificateArn", parent: name, pattern: "^arn:aws(-us-gov)?:acm:$")
            try self.dashSignaledSystemIds?.forEach {
                try validate($0, name: "dashSignaledSystemIds[]", parent: name, max: 36)
                try validate($0, name: "dashSignaledSystemIds[]", parent: name, min: 36)
                try validate($0, name: "dashSignaledSystemIds[]", parent: name, pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$")
            }
            try self.hlsSignaledSystemIds?.forEach {
                try validate($0, name: "hlsSignaledSystemIds[]", parent: name, max: 36)
                try validate($0, name: "hlsSignaledSystemIds[]", parent: name, min: 36)
                try validate($0, name: "hlsSignaledSystemIds[]", parent: name, pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$")
            }
            try self.validate(self.resourceId, name: "resourceId", parent: name, pattern: "^[\\w-]+$")
            try self.validate(self.url, name: "url", parent: name, pattern: "^https:\\/\\/[^:@\\/]*(:\\d*)?(\\/.*)?$")
        }

        private enum CodingKeys: String, CodingKey {
            case certificateArn = "certificateArn"
            case dashSignaledSystemIds = "dashSignaledSystemIds"
            case encryptionContractConfiguration = "encryptionContractConfiguration"
            case hlsSignaledSystemIds = "hlsSignaledSystemIds"
            case resourceId = "resourceId"
            case url = "url"
        }
    }

    public struct SrtDestinationSettings: AWSEncodableShape & AWSDecodableShape {
        /// Set Style passthrough to ENABLED to use the available style, color, and position information from your input captions. MediaConvert uses default settings for any missing style and position information in your input captions. Set Style passthrough to DISABLED, or leave blank, to ignore the style and position information from your input captions and use simplified output captions.
        public let stylePassthrough: SrtStylePassthrough?

        @inlinable
        public init(stylePassthrough: SrtStylePassthrough? = nil) {
            self.stylePassthrough = stylePassthrough
        }

        private enum CodingKeys: String, CodingKey {
            case stylePassthrough = "stylePassthrough"
        }
    }

    public struct StaticKeyProvider: AWSEncodableShape & AWSDecodableShape {
        /// Relates to DRM implementation. Sets the value of the KEYFORMAT attribute. Must be 'identity' or a reverse DNS string. May be omitted to indicate an implicit value of 'identity'.
        public let keyFormat: String?
        /// Relates to DRM implementation. Either a single positive integer version value or a slash delimited list of version values (1/2/3).
        public let keyFormatVersions: String?
        /// Relates to DRM implementation. Use a 32-character hexidecimal string to specify Key Value.
        public let staticKeyValue: String?
        /// Relates to DRM implementation. The location of the license server used for protecting content.
        public let url: String?

        @inlinable
        public init(keyFormat: String? = nil, keyFormatVersions: String? = nil, staticKeyValue: String? = nil, url: String? = nil) {
            self.keyFormat = keyFormat
            self.keyFormatVersions = keyFormatVersions
            self.staticKeyValue = staticKeyValue
            self.url = url
        }

        public func validate(name: String) throws {
            try self.validate(self.keyFormat, name: "keyFormat", parent: name, pattern: "^(identity|[A-Za-z]{2,6}(\\.[A-Za-z0-9-]{1,63})+)$")
            try self.validate(self.keyFormatVersions, name: "keyFormatVersions", parent: name, pattern: "^(\\d+(\\/\\d+)*)$")
            try self.validate(self.staticKeyValue, name: "staticKeyValue", parent: name, pattern: "^[A-Za-z0-9]{32}$")
        }

        private enum CodingKeys: String, CodingKey {
            case keyFormat = "keyFormat"
            case keyFormatVersions = "keyFormatVersions"
            case staticKeyValue = "staticKeyValue"
            case url = "url"
        }
    }

    public struct TagResourceRequest: AWSEncodableShape {
        /// The Amazon Resource Name (ARN) of the resource that you want to tag. To get the ARN, send a GET request with the resource name.
        public let arn: String?
        /// The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key.
        public let tags: [String: String]?

        @inlinable
        public init(arn: String? = nil, tags: [String: String]? = nil) {
            self.arn = arn
            self.tags = tags
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "arn"
            case tags = "tags"
        }
    }

    public struct TagResourceResponse: AWSDecodableShape {
        public init() {}
    }

    public struct TeletextDestinationSettings: AWSEncodableShape & AWSDecodableShape {
        /// Set pageNumber to the Teletext page number for the destination captions for this output. This value must be a three-digit hexadecimal string; strings ending in -FF are invalid. If you are passing through the entire set of Teletext data, do not use this field.
        public let pageNumber: String?
        /// Specify the page types for this Teletext page. If you don't specify a value here, the service sets the page type to the default value Subtitle. If you pass through the entire set of Teletext data, don't use this field. When you pass through a set of Teletext pages, your output has the same page types as your input.
        public let pageTypes: [TeletextPageType]?

        @inlinable
        public init(pageNumber: String? = nil, pageTypes: [TeletextPageType]? = nil) {
            self.pageNumber = pageNumber
            self.pageTypes = pageTypes
        }

        public func validate(name: String) throws {
            try self.validate(self.pageNumber, name: "pageNumber", parent: name, max: 3)
            try self.validate(self.pageNumber, name: "pageNumber", parent: name, min: 3)
            try self.validate(self.pageNumber, name: "pageNumber", parent: name, pattern: "^[1-8][0-9a-fA-F][0-9a-eA-E]$")
        }

        private enum CodingKeys: String, CodingKey {
            case pageNumber = "pageNumber"
            case pageTypes = "pageTypes"
        }
    }

    public struct TeletextSourceSettings: AWSEncodableShape & AWSDecodableShape {
        /// Use Page Number to specify the three-digit hexadecimal page number that will be used for Teletext captions. Do not use this setting if you are passing through teletext from the input source to output.
        public let pageNumber: String?

        @inlinable
        public init(pageNumber: String? = nil) {
            self.pageNumber = pageNumber
        }

        public func validate(name: String) throws {
            try self.validate(self.pageNumber, name: "pageNumber", parent: name, max: 3)
            try self.validate(self.pageNumber, name: "pageNumber", parent: name, min: 3)
            try self.validate(self.pageNumber, name: "pageNumber", parent: name, pattern: "^[1-8][0-9a-fA-F][0-9a-eA-E]$")
        }

        private enum CodingKeys: String, CodingKey {
            case pageNumber = "pageNumber"
        }
    }

    public struct TimecodeBurnin: AWSEncodableShape & AWSDecodableShape {
        /// Use Font size to set the font size of any burned-in timecode. Valid values are 10, 16, 32, 48.
        public let fontSize: Int?
        /// Use Position under Timecode burn-in to specify the location the burned-in timecode on output video.
        public let position: TimecodeBurninPosition?
        /// Use Prefix to place ASCII characters before any burned-in timecode. For example, a prefix of "EZ-" will result in the timecode "EZ-00:00:00:00". Provide either the characters themselves or the ASCII code equivalents. The supported range of characters is 0x20 through 0x7e. This includes letters, numbers, and all special characters represented on a standard English keyboard.
        public let prefix: String?

        @inlinable
        public init(fontSize: Int? = nil, position: TimecodeBurninPosition? = nil, prefix: String? = nil) {
            self.fontSize = fontSize
            self.position = position
            self.prefix = prefix
        }

        public func validate(name: String) throws {
            try self.validate(self.fontSize, name: "fontSize", parent: name, max: 48)
            try self.validate(self.fontSize, name: "fontSize", parent: name, min: 10)
            try self.validate(self.prefix, name: "prefix", parent: name, pattern: "^[ -~]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case fontSize = "fontSize"
            case position = "position"
            case prefix = "prefix"
        }
    }

    public struct TimecodeConfig: AWSEncodableShape & AWSDecodableShape {
        /// If you use an editing platform that relies on an anchor timecode, use Anchor Timecode to specify a timecode that will match the input video frame to the output video frame. Use 24-hour format with frame number, (HH:MM:SS:FF) or (HH:MM:SS;FF). This setting ignores frame rate conversion. System behavior for Anchor Timecode varies depending on your setting for Source. * If Source is set to Specified Start, the first input frame is the specified value in Start Timecode. Anchor Timecode and Start Timecode are used calculate output timecode. * If Source is set to Start at 0 the first frame is 00:00:00:00. * If Source is set to Embedded, the first frame is the timecode value on the first input frame of the input.
        public let anchor: String?
        /// Use Source to set how timecodes are handled within this job. To make sure that your video, audio, captions, and markers are synchronized and that time-based features, such as image inserter, work correctly, choose the Timecode source option that matches your assets. All timecodes are in a 24-hour format with frame number (HH:MM:SS:FF). * Embedded - Use the timecode that is in the input video. If no embedded timecode is in the source, the service will use Start at 0 instead. * Start at 0 - Set the timecode of the initial frame to 00:00:00:00. * Specified Start - Set the timecode of the initial frame to a value other than zero. You use Start timecode to provide this value.
        public let source: TimecodeSource?
        /// Only use when you set Source to Specified start. Use Start timecode to specify the timecode for the initial frame. Use 24-hour format with frame number, (HH:MM:SS:FF) or (HH:MM:SS;FF).
        public let start: String?
        /// Only applies to outputs that support program-date-time stamp. Use Timestamp offset to overwrite the timecode date without affecting the time and frame number. Provide the new date as a string in the format "yyyy-mm-dd". To use Timestamp offset, you must also enable Insert program-date-time in the output settings. For example, if the date part of your timecodes is 2002-1-25 and you want to change it to one year later, set Timestamp offset to 2003-1-25.
        public let timestampOffset: String?

        @inlinable
        public init(anchor: String? = nil, source: TimecodeSource? = nil, start: String? = nil, timestampOffset: String? = nil) {
            self.anchor = anchor
            self.source = source
            self.start = start
            self.timestampOffset = timestampOffset
        }

        public func validate(name: String) throws {
            try self.validate(self.anchor, name: "anchor", parent: name, pattern: "^([01][0-9]|2[0-4]):[0-5][0-9]:[0-5][0-9][:;][0-9]{2}$")
            try self.validate(self.start, name: "start", parent: name, pattern: "^([01][0-9]|2[0-4]):[0-5][0-9]:[0-5][0-9][:;][0-9]{2}$")
            try self.validate(self.timestampOffset, name: "timestampOffset", parent: name, pattern: "^([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$")
        }

        private enum CodingKeys: String, CodingKey {
            case anchor = "anchor"
            case source = "source"
            case start = "start"
            case timestampOffset = "timestampOffset"
        }
    }

    public struct TimedMetadataInsertion: AWSEncodableShape & AWSDecodableShape {
        /// Id3Insertions contains the array of Id3Insertion instances.
        public let id3Insertions: [Id3Insertion]?

        @inlinable
        public init(id3Insertions: [Id3Insertion]? = nil) {
            self.id3Insertions = id3Insertions
        }

        public func validate(name: String) throws {
            try self.id3Insertions?.forEach {
                try $0.validate(name: "\(name).id3Insertions[]")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case id3Insertions = "id3Insertions"
        }
    }

    public struct Timing: AWSDecodableShape {
        /// The time, in Unix epoch format, that the transcoding job finished
        @OptionalCustomCoding<UnixEpochDateCoder>
        public var finishTime: Date?
        /// The time, in Unix epoch format, that transcoding for the job began.
        @OptionalCustomCoding<UnixEpochDateCoder>
        public var startTime: Date?
        /// The time, in Unix epoch format, that you submitted the job.
        @OptionalCustomCoding<UnixEpochDateCoder>
        public var submitTime: Date?

        @inlinable
        public init(finishTime: Date? = nil, startTime: Date? = nil, submitTime: Date? = nil) {
            self.finishTime = finishTime
            self.startTime = startTime
            self.submitTime = submitTime
        }

        private enum CodingKeys: String, CodingKey {
            case finishTime = "finishTime"
            case startTime = "startTime"
            case submitTime = "submitTime"
        }
    }

    public struct Track: AWSDecodableShape {
        /// Details about the media file's audio track.
        public let audioProperties: AudioProperties?
        /// The codec of the audio or video track, or caption format of the data track.
        public let codec: Codec?
        /// Details about the media file's data track.
        public let dataProperties: DataProperties?
        /// The duration of the track, in seconds.
        public let duration: Double?
        /// The unique index number of the track, starting at 1.
        public let index: Int?
        /// The type of track: video, audio, or data.
        public let trackType: TrackType?
        /// Details about the media file's video track.
        public let videoProperties: VideoProperties?

        @inlinable
        public init(audioProperties: AudioProperties? = nil, codec: Codec? = nil, dataProperties: DataProperties? = nil, duration: Double? = nil, index: Int? = nil, trackType: TrackType? = nil, videoProperties: VideoProperties? = nil) {
            self.audioProperties = audioProperties
            self.codec = codec
            self.dataProperties = dataProperties
            self.duration = duration
            self.index = index
            self.trackType = trackType
            self.videoProperties = videoProperties
        }

        private enum CodingKeys: String, CodingKey {
            case audioProperties = "audioProperties"
            case codec = "codec"
            case dataProperties = "dataProperties"
            case duration = "duration"
            case index = "index"
            case trackType = "trackType"
            case videoProperties = "videoProperties"
        }
    }

    public struct TrackMapping: AWSDecodableShape {
        /// The index numbers of the audio tracks in your media file.
        public let audioTrackIndexes: [Int]?
        /// The index numbers of the data tracks in your media file.
        public let dataTrackIndexes: [Int]?
        /// The index numbers of the video tracks in your media file.
        public let videoTrackIndexes: [Int]?

        @inlinable
        public init(audioTrackIndexes: [Int]? = nil, dataTrackIndexes: [Int]? = nil, videoTrackIndexes: [Int]? = nil) {
            self.audioTrackIndexes = audioTrackIndexes
            self.dataTrackIndexes = dataTrackIndexes
            self.videoTrackIndexes = videoTrackIndexes
        }

        private enum CodingKeys: String, CodingKey {
            case audioTrackIndexes = "audioTrackIndexes"
            case dataTrackIndexes = "dataTrackIndexes"
            case videoTrackIndexes = "videoTrackIndexes"
        }
    }

    public struct TrackSourceSettings: AWSEncodableShape & AWSDecodableShape {
        /// Use this setting to select a single captions track from a source. Track numbers correspond to the order in the captions source file. For IMF sources, track numbering is based on the order that the captions appear in the CPL. For example, use 1 to select the captions asset that is listed first in the CPL. To include more than one captions track in your job outputs, create multiple input captions selectors. Specify one track per selector.
        public let trackNumber: Int?

        @inlinable
        public init(trackNumber: Int? = nil) {
            self.trackNumber = trackNumber
        }

        public func validate(name: String) throws {
            try self.validate(self.trackNumber, name: "trackNumber", parent: name, max: 2147483647)
            try self.validate(self.trackNumber, name: "trackNumber", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case trackNumber = "trackNumber"
        }
    }

    public struct TtmlDestinationSettings: AWSEncodableShape & AWSDecodableShape {
        /// Pass through style and position information from a TTML-like input source (TTML, IMSC, SMPTE-TT) to the TTML output.
        public let stylePassthrough: TtmlStylePassthrough?

        @inlinable
        public init(stylePassthrough: TtmlStylePassthrough? = nil) {
            self.stylePassthrough = stylePassthrough
        }

        private enum CodingKeys: String, CodingKey {
            case stylePassthrough = "stylePassthrough"
        }
    }

    public struct UncompressedSettings: AWSEncodableShape & AWSDecodableShape {
        /// The four character code for the uncompressed video.
        public let fourcc: UncompressedFourcc?
        /// Use the Framerate setting to specify the frame rate for this output. If you want to keep the same frame rate as the input video, choose Follow source. If you want to do frame rate conversion, choose a frame rate from the dropdown list or choose Custom. The framerates shown in the dropdown list are decimal approximations of fractions. If you choose Custom, specify your frame rate as a fraction.
        public let framerateControl: UncompressedFramerateControl?
        /// Choose the method that you want MediaConvert to use when increasing or decreasing your video's frame rate. For numerically simple conversions, such as 60 fps to 30 fps: We recommend that you keep the default value, Drop duplicate. For numerically complex conversions, to avoid stutter: Choose Interpolate. This results in a smooth picture, but might introduce undesirable video artifacts. For complex frame rate conversions, especially if your source video has already been converted from its original cadence: Choose FrameFormer to do motion-compensated interpolation. FrameFormer uses the best conversion method frame by frame. Note that using FrameFormer increases the transcoding time and incurs a significant add-on cost. When you choose FrameFormer, your input video resolution must be at least 128x96. To create an output with the same number of frames as your input: Choose Maintain frame count. When you do, MediaConvert will not drop, interpolate, add, or otherwise change the frame count from your input to your output. Note that since the frame count is maintained, the duration of your output will become shorter at higher frame rates and longer at lower frame rates.
        public let framerateConversionAlgorithm: UncompressedFramerateConversionAlgorithm?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateDenominator to specify the denominator of this fraction. In this example, use 1001 for the value of FramerateDenominator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateDenominator: Int?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateNumerator to specify the numerator of this fraction. In this example, use 24000 for the value of FramerateNumerator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateNumerator: Int?
        /// Optional. Choose the scan line type for this output. If you don't specify a value, MediaConvert will create a progressive output.
        public let interlaceMode: UncompressedInterlaceMode?
        /// Use this setting for interlaced outputs, when your output frame rate is half of your input frame rate. In this situation, choose Optimized interlacing to create a better quality interlaced output. In this case, each progressive frame from the input corresponds to an interlaced field in the output. Keep the default value, Basic interlacing, for all other output frame rates. With basic interlacing, MediaConvert performs any frame rate conversion first and then interlaces the frames. When you choose Optimized interlacing and you set your output frame rate to a value that isn't suitable for optimized interlacing, MediaConvert automatically falls back to basic interlacing. Required settings: To use optimized interlacing, you must set Telecine to None or Soft. You can't use optimized interlacing for hard telecine outputs. You must also set Interlace mode to a value other than Progressive.
        public let scanTypeConversionMode: UncompressedScanTypeConversionMode?
        /// Ignore this setting unless your input frame rate is 23.976 or 24 frames per second (fps). Enable slow PAL to create a 25 fps output by relabeling the video frames and resampling your audio. Note that enabling this setting will slightly reduce the duration of your video. Related settings: You must also set Framerate to 25.
        public let slowPal: UncompressedSlowPal?
        /// When you do frame rate conversion from 23.976 frames per second (fps) to 29.97 fps, and your output scan type is interlaced, you can optionally enable hard telecine to create a smoother picture. When you keep the default value, None, MediaConvert does a standard frame rate conversion to 29.97 without doing anything with the field polarity to create a smoother picture.
        public let telecine: UncompressedTelecine?

        @inlinable
        public init(fourcc: UncompressedFourcc? = nil, framerateControl: UncompressedFramerateControl? = nil, framerateConversionAlgorithm: UncompressedFramerateConversionAlgorithm? = nil, framerateDenominator: Int? = nil, framerateNumerator: Int? = nil, interlaceMode: UncompressedInterlaceMode? = nil, scanTypeConversionMode: UncompressedScanTypeConversionMode? = nil, slowPal: UncompressedSlowPal? = nil, telecine: UncompressedTelecine? = nil) {
            self.fourcc = fourcc
            self.framerateControl = framerateControl
            self.framerateConversionAlgorithm = framerateConversionAlgorithm
            self.framerateDenominator = framerateDenominator
            self.framerateNumerator = framerateNumerator
            self.interlaceMode = interlaceMode
            self.scanTypeConversionMode = scanTypeConversionMode
            self.slowPal = slowPal
            self.telecine = telecine
        }

        public func validate(name: String) throws {
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, max: 2147483647)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, min: 1)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, max: 2147483647)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case fourcc = "fourcc"
            case framerateControl = "framerateControl"
            case framerateConversionAlgorithm = "framerateConversionAlgorithm"
            case framerateDenominator = "framerateDenominator"
            case framerateNumerator = "framerateNumerator"
            case interlaceMode = "interlaceMode"
            case scanTypeConversionMode = "scanTypeConversionMode"
            case slowPal = "slowPal"
            case telecine = "telecine"
        }
    }

    public struct UntagResourceRequest: AWSEncodableShape {
        /// The Amazon Resource Name (ARN) of the resource that you want to remove tags from. To get the ARN, send a GET request with the resource name.
        public let arn: String
        /// The keys of the tags that you want to remove from the resource.
        public let tagKeys: [String]?

        @inlinable
        public init(arn: String, tagKeys: [String]? = nil) {
            self.arn = arn
            self.tagKeys = tagKeys
        }

        public func encode(to encoder: Encoder) throws {
            let request = encoder.userInfo[.awsRequest]! as! RequestEncodingContainer
            var container = encoder.container(keyedBy: CodingKeys.self)
            request.encodePath(self.arn, key: "Arn")
            try container.encodeIfPresent(self.tagKeys, forKey: .tagKeys)
        }

        private enum CodingKeys: String, CodingKey {
            case tagKeys = "tagKeys"
        }
    }

    public struct UntagResourceResponse: AWSDecodableShape {
        public init() {}
    }

    public struct UpdateJobTemplateRequest: AWSEncodableShape {
        /// Accelerated transcoding can significantly speed up jobs with long, visually complex content. Outputs that use this feature incur pro-tier pricing. For information about feature limitations, see the AWS Elemental MediaConvert User Guide.
        public let accelerationSettings: AccelerationSettings?
        /// The new category for the job template, if you are changing it.
        public let category: String?
        /// The new description for the job template, if you are changing it.
        public let description: String?
        /// Optional list of hop destinations.
        public let hopDestinations: [HopDestination]?
        /// The name of the job template you are modifying
        public let name: String
        /// Specify the relative priority for this job. In any given queue, the service begins processing the job with the highest value first. When more than one job has the same priority, the service begins processing the job that you submitted first. If you don't specify a priority, the service uses the default value 0.
        public let priority: Int?
        /// The new queue for the job template, if you are changing it.
        public let queue: String?
        /// JobTemplateSettings contains all the transcode settings saved in the template that will be applied to jobs created from it.
        public let settings: JobTemplateSettings?
        /// Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch Events. Set the interval, in seconds, between status updates. MediaConvert sends an update at this interval from the time the service begins processing your job to the time it completes the transcode or encounters an error.
        public let statusUpdateInterval: StatusUpdateInterval?

        @inlinable
        public init(accelerationSettings: AccelerationSettings? = nil, category: String? = nil, description: String? = nil, hopDestinations: [HopDestination]? = nil, name: String, priority: Int? = nil, queue: String? = nil, settings: JobTemplateSettings? = nil, statusUpdateInterval: StatusUpdateInterval? = nil) {
            self.accelerationSettings = accelerationSettings
            self.category = category
            self.description = description
            self.hopDestinations = hopDestinations
            self.name = name
            self.priority = priority
            self.queue = queue
            self.settings = settings
            self.statusUpdateInterval = statusUpdateInterval
        }

        public func encode(to encoder: Encoder) throws {
            let request = encoder.userInfo[.awsRequest]! as! RequestEncodingContainer
            var container = encoder.container(keyedBy: CodingKeys.self)
            try container.encodeIfPresent(self.accelerationSettings, forKey: .accelerationSettings)
            try container.encodeIfPresent(self.category, forKey: .category)
            try container.encodeIfPresent(self.description, forKey: .description)
            try container.encodeIfPresent(self.hopDestinations, forKey: .hopDestinations)
            request.encodePath(self.name, key: "Name")
            try container.encodeIfPresent(self.priority, forKey: .priority)
            try container.encodeIfPresent(self.queue, forKey: .queue)
            try container.encodeIfPresent(self.settings, forKey: .settings)
            try container.encodeIfPresent(self.statusUpdateInterval, forKey: .statusUpdateInterval)
        }

        public func validate(name: String) throws {
            try self.hopDestinations?.forEach {
                try $0.validate(name: "\(name).hopDestinations[]")
            }
            try self.validate(self.priority, name: "priority", parent: name, max: 50)
            try self.validate(self.priority, name: "priority", parent: name, min: -50)
            try self.settings?.validate(name: "\(name).settings")
        }

        private enum CodingKeys: String, CodingKey {
            case accelerationSettings = "accelerationSettings"
            case category = "category"
            case description = "description"
            case hopDestinations = "hopDestinations"
            case priority = "priority"
            case queue = "queue"
            case settings = "settings"
            case statusUpdateInterval = "statusUpdateInterval"
        }
    }

    public struct UpdateJobTemplateResponse: AWSDecodableShape {
        /// A job template is a pre-made set of encoding instructions that you can use to quickly create a job.
        public let jobTemplate: JobTemplate?

        @inlinable
        public init(jobTemplate: JobTemplate? = nil) {
            self.jobTemplate = jobTemplate
        }

        private enum CodingKeys: String, CodingKey {
            case jobTemplate = "jobTemplate"
        }
    }

    public struct UpdatePresetRequest: AWSEncodableShape {
        /// The new category for the preset, if you are changing it.
        public let category: String?
        /// The new description for the preset, if you are changing it.
        public let description: String?
        /// The name of the preset you are modifying.
        public let name: String
        /// Settings for preset
        public let settings: PresetSettings?

        @inlinable
        public init(category: String? = nil, description: String? = nil, name: String, settings: PresetSettings? = nil) {
            self.category = category
            self.description = description
            self.name = name
            self.settings = settings
        }

        public func encode(to encoder: Encoder) throws {
            let request = encoder.userInfo[.awsRequest]! as! RequestEncodingContainer
            var container = encoder.container(keyedBy: CodingKeys.self)
            try container.encodeIfPresent(self.category, forKey: .category)
            try container.encodeIfPresent(self.description, forKey: .description)
            request.encodePath(self.name, key: "Name")
            try container.encodeIfPresent(self.settings, forKey: .settings)
        }

        public func validate(name: String) throws {
            try self.settings?.validate(name: "\(name).settings")
        }

        private enum CodingKeys: String, CodingKey {
            case category = "category"
            case description = "description"
            case settings = "settings"
        }
    }

    public struct UpdatePresetResponse: AWSDecodableShape {
        /// A preset is a collection of preconfigured media conversion settings that you want MediaConvert to apply to the output during the conversion process.
        public let preset: Preset?

        @inlinable
        public init(preset: Preset? = nil) {
            self.preset = preset
        }

        private enum CodingKeys: String, CodingKey {
            case preset = "preset"
        }
    }

    public struct UpdateQueueRequest: AWSEncodableShape {
        /// Specify the maximum number of jobs your queue can process concurrently. For on-demand queues, the value you enter is constrained by your service quotas for Maximum concurrent jobs, per on-demand queue and Maximum concurrent jobs, per account. For reserved queues, update your reservation plan instead in order to increase your yearly commitment.
        public let concurrentJobs: Int?
        /// The new description for the queue, if you are changing it.
        public let description: String?
        /// The name of the queue that you are modifying.
        public let name: String
        /// The new details of your pricing plan for your reserved queue. When you set up a new pricing plan to replace an expired one, you enter into another 12-month commitment. When you add capacity to your queue by increasing the number of RTS, you extend the term of your commitment to 12 months from when you add capacity. After you make these commitments, you can't cancel them.
        public let reservationPlanSettings: ReservationPlanSettings?
        /// Pause or activate a queue by changing its status between ACTIVE and PAUSED. If you pause a queue, jobs in that queue won't begin. Jobs that are running when you pause the queue continue to run until they finish or result in an error.
        public let status: QueueStatus?

        @inlinable
        public init(concurrentJobs: Int? = nil, description: String? = nil, name: String, reservationPlanSettings: ReservationPlanSettings? = nil, status: QueueStatus? = nil) {
            self.concurrentJobs = concurrentJobs
            self.description = description
            self.name = name
            self.reservationPlanSettings = reservationPlanSettings
            self.status = status
        }

        public func encode(to encoder: Encoder) throws {
            let request = encoder.userInfo[.awsRequest]! as! RequestEncodingContainer
            var container = encoder.container(keyedBy: CodingKeys.self)
            try container.encodeIfPresent(self.concurrentJobs, forKey: .concurrentJobs)
            try container.encodeIfPresent(self.description, forKey: .description)
            request.encodePath(self.name, key: "Name")
            try container.encodeIfPresent(self.reservationPlanSettings, forKey: .reservationPlanSettings)
            try container.encodeIfPresent(self.status, forKey: .status)
        }

        private enum CodingKeys: String, CodingKey {
            case concurrentJobs = "concurrentJobs"
            case description = "description"
            case reservationPlanSettings = "reservationPlanSettings"
            case status = "status"
        }
    }

    public struct UpdateQueueResponse: AWSDecodableShape {
        /// You can use queues to manage the resources that are available to your AWS account for running multiple transcoding jobs at the same time. If you don't specify a queue, the service sends all jobs through the default queue. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-queues.html.
        public let queue: Queue?

        @inlinable
        public init(queue: Queue? = nil) {
            self.queue = queue
        }

        private enum CodingKeys: String, CodingKey {
            case queue = "queue"
        }
    }

    public struct Vc3Settings: AWSEncodableShape & AWSDecodableShape {
        /// If you are using the console, use the Framerate setting to specify the frame rate for this output. If you want to keep the same frame rate as the input video, choose Follow source. If you want to do frame rate conversion, choose a frame rate from the dropdown list or choose Custom. The framerates shown in the dropdown list are decimal approximations of fractions. If you choose Custom, specify your frame rate as a fraction.
        public let framerateControl: Vc3FramerateControl?
        /// Choose the method that you want MediaConvert to use when increasing or decreasing your video's frame rate. For numerically simple conversions, such as 60 fps to 30 fps: We recommend that you keep the default value, Drop duplicate. For numerically complex conversions, to avoid stutter: Choose Interpolate. This results in a smooth picture, but might introduce undesirable video artifacts. For complex frame rate conversions, especially if your source video has already been converted from its original cadence: Choose FrameFormer to do motion-compensated interpolation. FrameFormer uses the best conversion method frame by frame. Note that using FrameFormer increases the transcoding time and incurs a significant add-on cost. When you choose FrameFormer, your input video resolution must be at least 128x96. To create an output with the same number of frames as your input: Choose Maintain frame count. When you do, MediaConvert will not drop, interpolate, add, or otherwise change the frame count from your input to your output. Note that since the frame count is maintained, the duration of your output will become shorter at higher frame rates and longer at lower frame rates.
        public let framerateConversionAlgorithm: Vc3FramerateConversionAlgorithm?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateDenominator to specify the denominator of this fraction. In this example, use 1001 for the value of FramerateDenominator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateDenominator: Int?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateNumerator to specify the numerator of this fraction. In this example, use 24000 for the value of FramerateNumerator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateNumerator: Int?
        /// Optional. Choose the scan line type for this output. If you don't specify a value, MediaConvert will create a progressive output.
        public let interlaceMode: Vc3InterlaceMode?
        /// Use this setting for interlaced outputs, when your output frame rate is half of your input frame rate. In this situation, choose Optimized interlacing to create a better quality interlaced output. In this case, each progressive frame from the input corresponds to an interlaced field in the output. Keep the default value, Basic interlacing, for all other output frame rates. With basic interlacing, MediaConvert performs any frame rate conversion first and then interlaces the frames. When you choose Optimized interlacing and you set your output frame rate to a value that isn't suitable for optimized interlacing, MediaConvert automatically falls back to basic interlacing. Required settings: To use optimized interlacing, you must set Telecine to None or Soft. You can't use optimized interlacing for hard telecine outputs. You must also set Interlace mode to a value other than Progressive.
        public let scanTypeConversionMode: Vc3ScanTypeConversionMode?
        /// Ignore this setting unless your input frame rate is 23.976 or 24 frames per second (fps). Enable slow PAL to create a 25 fps output by relabeling the video frames and resampling your audio. Note that enabling this setting will slightly reduce the duration of your video. Related settings: You must also set Framerate to 25.
        public let slowPal: Vc3SlowPal?
        /// When you do frame rate conversion from 23.976 frames per second (fps) to 29.97 fps, and your output scan type is interlaced, you can optionally enable hard telecine to create a smoother picture. When you keep the default value, None, MediaConvert does a standard frame rate conversion to 29.97 without doing anything with the field polarity to create a smoother picture.
        public let telecine: Vc3Telecine?
        /// Specify the VC3 class to choose the quality characteristics for this output. VC3 class, together with the settings Framerate (framerateNumerator and framerateDenominator) and Resolution (height and width), determine your output bitrate. For example, say that your video resolution is 1920x1080 and your framerate is 29.97. Then Class 145 gives you an output with a bitrate of approximately 145 Mbps and Class 220 gives you and output with a bitrate of approximately 220 Mbps. VC3 class also specifies the color bit depth of your output.
        public let vc3Class: Vc3Class?

        @inlinable
        public init(framerateControl: Vc3FramerateControl? = nil, framerateConversionAlgorithm: Vc3FramerateConversionAlgorithm? = nil, framerateDenominator: Int? = nil, framerateNumerator: Int? = nil, interlaceMode: Vc3InterlaceMode? = nil, scanTypeConversionMode: Vc3ScanTypeConversionMode? = nil, slowPal: Vc3SlowPal? = nil, telecine: Vc3Telecine? = nil, vc3Class: Vc3Class? = nil) {
            self.framerateControl = framerateControl
            self.framerateConversionAlgorithm = framerateConversionAlgorithm
            self.framerateDenominator = framerateDenominator
            self.framerateNumerator = framerateNumerator
            self.interlaceMode = interlaceMode
            self.scanTypeConversionMode = scanTypeConversionMode
            self.slowPal = slowPal
            self.telecine = telecine
            self.vc3Class = vc3Class
        }

        public func validate(name: String) throws {
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, max: 1001)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, min: 1)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, max: 60000)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, min: 24)
        }

        private enum CodingKeys: String, CodingKey {
            case framerateControl = "framerateControl"
            case framerateConversionAlgorithm = "framerateConversionAlgorithm"
            case framerateDenominator = "framerateDenominator"
            case framerateNumerator = "framerateNumerator"
            case interlaceMode = "interlaceMode"
            case scanTypeConversionMode = "scanTypeConversionMode"
            case slowPal = "slowPal"
            case telecine = "telecine"
            case vc3Class = "vc3Class"
        }
    }

    public struct VideoCodecSettings: AWSEncodableShape & AWSDecodableShape {
        /// Required when you set Codec, under VideoDescription>CodecSettings to the value AV1.
        public let av1Settings: Av1Settings?
        /// Required when you choose AVC-Intra for your output video codec. For more information about the AVC-Intra settings, see the relevant specification. For detailed information about SD and HD in AVC-Intra, see https://ieeexplore.ieee.org/document/7290936. For information about 4K/2K in AVC-Intra, see https://pro-av.panasonic.net/en/avc-ultra/AVC-ULTRAoverview.pdf.
        public let avcIntraSettings: AvcIntraSettings?
        /// Specifies the video codec. This must be equal to one of the enum values defined by the object VideoCodec. To passthrough the video stream of your input without any video encoding: Choose Passthrough. More information about passthrough codec support and job settings requirements, see: https://docs.aws.amazon.com/mediaconvert/latest/ug/video-passthrough-feature-restrictions.html
        public let codec: VideoCodec?
        /// Required when you set Codec to the value FRAME_CAPTURE.
        public let frameCaptureSettings: FrameCaptureSettings?
        /// Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the value GIF
        public let gifSettings: GifSettings?
        /// Required when you set Codec to the value H_264.
        public let h264Settings: H264Settings?
        /// Settings for H265 codec
        public let h265Settings: H265Settings?
        /// Required when you set Codec to the value MPEG2.
        public let mpeg2Settings: Mpeg2Settings?
        /// Required when you set Codec to the value PRORES.
        public let proresSettings: ProresSettings?
        /// Required when you set Codec, under VideoDescription>CodecSettings to the value UNCOMPRESSED.
        public let uncompressedSettings: UncompressedSettings?
        /// Required when you set Codec to the value VC3
        public let vc3Settings: Vc3Settings?
        /// Required when you set Codec to the value VP8.
        public let vp8Settings: Vp8Settings?
        /// Required when you set Codec to the value VP9.
        public let vp9Settings: Vp9Settings?
        /// Required when you set Codec to the value XAVC.
        public let xavcSettings: XavcSettings?

        @inlinable
        public init(av1Settings: Av1Settings? = nil, avcIntraSettings: AvcIntraSettings? = nil, codec: VideoCodec? = nil, frameCaptureSettings: FrameCaptureSettings? = nil, gifSettings: GifSettings? = nil, h264Settings: H264Settings? = nil, h265Settings: H265Settings? = nil, mpeg2Settings: Mpeg2Settings? = nil, proresSettings: ProresSettings? = nil, uncompressedSettings: UncompressedSettings? = nil, vc3Settings: Vc3Settings? = nil, vp8Settings: Vp8Settings? = nil, vp9Settings: Vp9Settings? = nil, xavcSettings: XavcSettings? = nil) {
            self.av1Settings = av1Settings
            self.avcIntraSettings = avcIntraSettings
            self.codec = codec
            self.frameCaptureSettings = frameCaptureSettings
            self.gifSettings = gifSettings
            self.h264Settings = h264Settings
            self.h265Settings = h265Settings
            self.mpeg2Settings = mpeg2Settings
            self.proresSettings = proresSettings
            self.uncompressedSettings = uncompressedSettings
            self.vc3Settings = vc3Settings
            self.vp8Settings = vp8Settings
            self.vp9Settings = vp9Settings
            self.xavcSettings = xavcSettings
        }

        public func validate(name: String) throws {
            try self.av1Settings?.validate(name: "\(name).av1Settings")
            try self.avcIntraSettings?.validate(name: "\(name).avcIntraSettings")
            try self.frameCaptureSettings?.validate(name: "\(name).frameCaptureSettings")
            try self.gifSettings?.validate(name: "\(name).gifSettings")
            try self.h264Settings?.validate(name: "\(name).h264Settings")
            try self.h265Settings?.validate(name: "\(name).h265Settings")
            try self.mpeg2Settings?.validate(name: "\(name).mpeg2Settings")
            try self.proresSettings?.validate(name: "\(name).proresSettings")
            try self.uncompressedSettings?.validate(name: "\(name).uncompressedSettings")
            try self.vc3Settings?.validate(name: "\(name).vc3Settings")
            try self.vp8Settings?.validate(name: "\(name).vp8Settings")
            try self.vp9Settings?.validate(name: "\(name).vp9Settings")
            try self.xavcSettings?.validate(name: "\(name).xavcSettings")
        }

        private enum CodingKeys: String, CodingKey {
            case av1Settings = "av1Settings"
            case avcIntraSettings = "avcIntraSettings"
            case codec = "codec"
            case frameCaptureSettings = "frameCaptureSettings"
            case gifSettings = "gifSettings"
            case h264Settings = "h264Settings"
            case h265Settings = "h265Settings"
            case mpeg2Settings = "mpeg2Settings"
            case proresSettings = "proresSettings"
            case uncompressedSettings = "uncompressedSettings"
            case vc3Settings = "vc3Settings"
            case vp8Settings = "vp8Settings"
            case vp9Settings = "vp9Settings"
            case xavcSettings = "xavcSettings"
        }
    }

    public struct VideoDescription: AWSEncodableShape & AWSDecodableShape {
        /// This setting only applies to H.264, H.265, and MPEG2 outputs. Use Insert AFD signaling to specify whether the service includes AFD values in the output video data and what those values are. * Choose None to remove all AFD values from this output. * Choose Fixed to ignore input AFD values and instead encode the value specified in the job. * Choose Auto to calculate output AFD values based on the input AFD scaler data.
        public let afdSignaling: AfdSignaling?
        /// The anti-alias filter is automatically applied to all outputs. The service no longer accepts the value DISABLED for AntiAlias. If you specify that in your job, the service will ignore the setting.
        public let antiAlias: AntiAlias?
        /// Specify the chroma sample positioning metadata for your H.264 or H.265 output. To have MediaConvert automatically determine chroma positioning: We recommend that you keep the default value, Auto. To specify center positioning: Choose Force center. To specify top left positioning: Choose Force top left.
        public let chromaPositionMode: ChromaPositionMode?
        /// Video codec settings contains the group of settings related to video encoding. The settings in this group vary depending on the value that you choose for Video codec. For each codec enum that you choose, define the corresponding settings object. The following lists the codec enum, settings object pairs. * AV1, Av1Settings * AVC_INTRA, AvcIntraSettings * FRAME_CAPTURE, FrameCaptureSettings * GIF, GifSettings * H_264, H264Settings * H_265, H265Settings * MPEG2, Mpeg2Settings * PRORES, ProresSettings * UNCOMPRESSED, UncompressedSettings * VC3, Vc3Settings * VP8, Vp8Settings * VP9, Vp9Settings * XAVC, XavcSettings
        public let codecSettings: VideoCodecSettings?
        /// Choose Insert for this setting to include color metadata in this output. Choose Ignore to exclude color metadata from this output. If you don't specify a value, the service sets this to Insert by default.
        public let colorMetadata: ColorMetadata?
        /// Use Cropping selection to specify the video area that the service will include in the output video frame.
        public let crop: Rectangle?
        /// Applies only to 29.97 fps outputs. When this feature is enabled, the service will use drop-frame timecode on outputs. If it is not possible to use drop-frame timecode, the system will fall back to non-drop-frame. This setting is enabled by default when Timecode insertion or Timecode track is enabled.
        public let dropFrameTimecode: DropFrameTimecode?
        /// Applies only if you set AFD Signaling to Fixed. Use Fixed to specify a four-bit AFD value which the service will write on all frames of this video output.
        public let fixedAfd: Int?
        /// Use Height to define the video resolution height, in pixels, for this output. To use the same resolution as your input: Leave both Width and Height blank. To evenly scale from your input resolution: Leave Height blank and enter a value for Width. For example, if your input is 1920x1080 and you set Width to 1280, your output will be 1280x720.
        public let height: Int?
        /// Use Selection placement to define the video area in your output frame. The area outside of the rectangle that you specify here is black.
        public let position: Rectangle?
        /// Use Respond to AFD to specify how the service changes the video itself in response to AFD values in the input. * Choose Respond to clip the input video frame according to the AFD value, input display aspect ratio, and output display aspect ratio. * Choose Passthrough to include the input AFD values. Do not choose this when AfdSignaling is set to NONE. A preferred implementation of this workflow is to set RespondToAfd to and set AfdSignaling to AUTO. * Choose None to remove all input AFD values from this output.
        public let respondToAfd: RespondToAfd?
        /// Specify the video Scaling behavior when your output has a different resolution than your input. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/video-scaling.html
        public let scalingBehavior: ScalingBehavior?
        /// Use Sharpness setting to specify the strength of anti-aliasing. This setting changes the width of the anti-alias filter kernel used for scaling. Sharpness only applies if your output resolution is different from your input resolution. 0 is the softest setting, 100 the sharpest, and 50 recommended for most content.
        public let sharpness: Int?
        /// Applies only to H.264, H.265, MPEG2, and ProRes outputs. Only enable Timecode insertion when the input frame rate is identical to the output frame rate. To include timecodes in this output, set Timecode insertion to PIC_TIMING_SEI. To leave them out, set it to DISABLED. Default is DISABLED. When the service inserts timecodes in an output, by default, it uses any embedded timecodes from the input. If none are present, the service will set the timecode for the first output frame to zero. To change this default behavior, adjust the settings under Timecode configuration. In the console, these settings are located under Job > Job settings > Timecode configuration. Note - Timecode source under input settings does not affect the timecodes that are inserted in the output. Source under Job settings > Timecode configuration does.
        public let timecodeInsertion: VideoTimecodeInsertion?
        /// To include a timecode track in your MP4 output: Choose Enabled. MediaConvert writes the timecode track in the Null Media Header box (NMHD), without any timecode text formatting information. You can also specify dropframe or non-dropframe timecode under the Drop Frame Timecode setting. To not include a timecode track: Keep the default value, Disabled.
        public let timecodeTrack: TimecodeTrack?
        /// Find additional transcoding features under Preprocessors. Enable the features at each output individually. These features are disabled by default.
        public let videoPreprocessors: VideoPreprocessor?
        /// Use Width to define the video resolution width, in pixels, for this output. To use the same resolution as your input: Leave both Width and Height blank. To evenly scale from your input resolution: Leave Width blank and enter a value for Height. For example, if your input is 1920x1080 and you set Height to 720, your output will be 1280x720.
        public let width: Int?

        @inlinable
        public init(afdSignaling: AfdSignaling? = nil, antiAlias: AntiAlias? = nil, chromaPositionMode: ChromaPositionMode? = nil, codecSettings: VideoCodecSettings? = nil, colorMetadata: ColorMetadata? = nil, crop: Rectangle? = nil, dropFrameTimecode: DropFrameTimecode? = nil, fixedAfd: Int? = nil, height: Int? = nil, position: Rectangle? = nil, respondToAfd: RespondToAfd? = nil, scalingBehavior: ScalingBehavior? = nil, sharpness: Int? = nil, timecodeInsertion: VideoTimecodeInsertion? = nil, timecodeTrack: TimecodeTrack? = nil, videoPreprocessors: VideoPreprocessor? = nil, width: Int? = nil) {
            self.afdSignaling = afdSignaling
            self.antiAlias = antiAlias
            self.chromaPositionMode = chromaPositionMode
            self.codecSettings = codecSettings
            self.colorMetadata = colorMetadata
            self.crop = crop
            self.dropFrameTimecode = dropFrameTimecode
            self.fixedAfd = fixedAfd
            self.height = height
            self.position = position
            self.respondToAfd = respondToAfd
            self.scalingBehavior = scalingBehavior
            self.sharpness = sharpness
            self.timecodeInsertion = timecodeInsertion
            self.timecodeTrack = timecodeTrack
            self.videoPreprocessors = videoPreprocessors
            self.width = width
        }

        public func validate(name: String) throws {
            try self.codecSettings?.validate(name: "\(name).codecSettings")
            try self.crop?.validate(name: "\(name).crop")
            try self.validate(self.fixedAfd, name: "fixedAfd", parent: name, max: 15)
            try self.validate(self.fixedAfd, name: "fixedAfd", parent: name, min: 0)
            try self.validate(self.height, name: "height", parent: name, max: 8192)
            try self.validate(self.height, name: "height", parent: name, min: 32)
            try self.position?.validate(name: "\(name).position")
            try self.validate(self.sharpness, name: "sharpness", parent: name, max: 100)
            try self.validate(self.sharpness, name: "sharpness", parent: name, min: 0)
            try self.videoPreprocessors?.validate(name: "\(name).videoPreprocessors")
            try self.validate(self.width, name: "width", parent: name, max: 8192)
            try self.validate(self.width, name: "width", parent: name, min: 32)
        }

        private enum CodingKeys: String, CodingKey {
            case afdSignaling = "afdSignaling"
            case antiAlias = "antiAlias"
            case chromaPositionMode = "chromaPositionMode"
            case codecSettings = "codecSettings"
            case colorMetadata = "colorMetadata"
            case crop = "crop"
            case dropFrameTimecode = "dropFrameTimecode"
            case fixedAfd = "fixedAfd"
            case height = "height"
            case position = "position"
            case respondToAfd = "respondToAfd"
            case scalingBehavior = "scalingBehavior"
            case sharpness = "sharpness"
            case timecodeInsertion = "timecodeInsertion"
            case timecodeTrack = "timecodeTrack"
            case videoPreprocessors = "videoPreprocessors"
            case width = "width"
        }
    }

    public struct VideoDetail: AWSDecodableShape {
        /// Height in pixels for the output
        public let heightInPx: Int?
        /// Width in pixels for the output
        public let widthInPx: Int?

        @inlinable
        public init(heightInPx: Int? = nil, widthInPx: Int? = nil) {
            self.heightInPx = heightInPx
            self.widthInPx = widthInPx
        }

        private enum CodingKeys: String, CodingKey {
            case heightInPx = "heightInPx"
            case widthInPx = "widthInPx"
        }
    }

    public struct VideoOverlay: AWSEncodableShape & AWSDecodableShape {
        /// Specify a rectangle of content to crop and use from your video overlay's input video. When you do, MediaConvert uses the cropped dimensions that you specify under X offset, Y offset, Width, and Height.
        public let crop: VideoOverlayCrop?
        /// Enter the end timecode in the base input video for this overlay. Your overlay will be active through this frame. To display your video overlay for the duration of the base input video: Leave blank. Use the format HH:MM:SS:FF or HH:MM:SS;FF, where HH is the hour, MM is the minute, SS isthe second, and FF is the frame number. When entering this value, take into account your choice for the base input video's timecode source. For example, if you have embedded timecodes that start at 01:00:00:00 and you want your overlay to end ten minutes into the video, enter 01:10:00:00.
        public let endTimecode: String?
        /// Specify the Initial position of your video overlay. To specify the Initial position of your video overlay, including distance from the left or top edge of the base input video's frame, or size: Enter a value for X position, Y position, Width, or Height. To use the full frame of the base input video: Leave blank.
        public let initialPosition: VideoOverlayPosition?
        /// Input settings for Video overlay. You can include one or more video overlays in sequence at different times that you specify.
        public let input: VideoOverlayInput?
        /// Specify whether your video overlay repeats or plays only once. To repeat your video overlay on a loop: Keep the default value, Repeat. Your overlay will repeat for the duration of the base input video. To playback your video overlay only once: Choose Once. With either option, you can end playback at a time that you specify by entering a value for End timecode.
        public let playback: VideoOverlayPlayBackMode?
        /// Enter the start timecode in the base input video for this overlay. Your overlay will be active starting with this frame. To display your video overlay starting at the beginning of the base input video: Leave blank. Use the format HH:MM:SS:FF or HH:MM:SS;FF, where HH is the hour, MM is the minute, SS is the second, and FF is the frame number. When entering this value, take into account your choice for the base input video's timecode source. For example, if you have embedded timecodes that start at 01:00:00:00 and you want your overlay to begin five minutes into the video, enter 01:05:00:00.
        public let startTimecode: String?
        /// Specify one or more transitions for your video overlay. Use Transitions to reposition or resize your overlay over time. To use the same position and size for the duration of your video overlay: Leave blank. To specify a Transition: Enter a value for Start timecode, End Timecode, X Position, Y Position, Width, or Height.
        public let transitions: [VideoOverlayTransition]?

        @inlinable
        public init(crop: VideoOverlayCrop? = nil, endTimecode: String? = nil, initialPosition: VideoOverlayPosition? = nil, input: VideoOverlayInput? = nil, playback: VideoOverlayPlayBackMode? = nil, startTimecode: String? = nil, transitions: [VideoOverlayTransition]? = nil) {
            self.crop = crop
            self.endTimecode = endTimecode
            self.initialPosition = initialPosition
            self.input = input
            self.playback = playback
            self.startTimecode = startTimecode
            self.transitions = transitions
        }

        public func validate(name: String) throws {
            try self.crop?.validate(name: "\(name).crop")
            try self.validate(self.endTimecode, name: "endTimecode", parent: name, pattern: "^([01][0-9]|2[0-4]):[0-5][0-9]:[0-5][0-9][:;][0-9]{2}$")
            try self.initialPosition?.validate(name: "\(name).initialPosition")
            try self.input?.validate(name: "\(name).input")
            try self.validate(self.startTimecode, name: "startTimecode", parent: name, pattern: "^([01][0-9]|2[0-4]):[0-5][0-9]:[0-5][0-9][:;][0-9]{2}$")
            try self.transitions?.forEach {
                try $0.validate(name: "\(name).transitions[]")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case crop = "crop"
            case endTimecode = "endTimecode"
            case initialPosition = "initialPosition"
            case input = "input"
            case playback = "playback"
            case startTimecode = "startTimecode"
            case transitions = "transitions"
        }
    }

    public struct VideoOverlayCrop: AWSEncodableShape & AWSDecodableShape {
        /// Specify the height of the video overlay cropping rectangle. To use the same height as your overlay input video: Keep blank, or enter 0. To specify a different height for the cropping rectangle: Enter an integer representing the Unit type that you choose, either Pixels or Percentage. For example, when you enter 100 and choose Pixels, the cropping rectangle will be 100 pixels high. When you enter 10, choose Percentage, and your overlay input video is 1920x1080, the cropping rectangle will be 108 pixels high.
        public let height: Int?
        /// Specify the Unit type to use when you enter a value for X position, Y position, Width, or Height. You can choose Pixels or Percentage. Leave blank to use the default value, Pixels.
        public let unit: VideoOverlayUnit?
        /// Specify the width of the video overlay cropping rectangle. To use the same width as your overlay input video: Keep blank, or enter 0. To specify a different width for the cropping rectangle: Enter an integer representing the Unit type that you choose, either Pixels or Percentage. For example, when you enter 100 and choose Pixels, the cropping rectangle will be 100 pixels wide. When you enter 10, choose Percentage, and your overlay input video is 1920x1080, the cropping rectangle will be 192 pixels wide.
        public let width: Int?
        /// Specify the distance between the cropping rectangle and the left edge of your overlay video's frame. To position the cropping rectangle along the left edge: Keep blank, or enter 0. To position the cropping rectangle to the right, relative to the left edge of your overlay video's frame: Enter an integer representing the Unit type that you choose, either Pixels or Percentage. For example, when you enter 10 and choose Pixels, the cropping rectangle will be positioned 10 pixels from the left edge of the overlay video's frame. When you enter 10, choose Percentage, and your overlay input video is 1920x1080, the cropping rectangle will be positioned 192 pixels from the left edge of the overlay video's frame.
        public let x: Int?
        /// Specify the distance between the cropping rectangle and the top edge of your overlay video's frame. To position the cropping rectangle along the top edge: Keep blank, or enter 0. To position the cropping rectangle down, relative to the top edge of your overlay video's frame: Enter an integer representing the Unit type that you choose, either Pixels or Percentage. For example, when you enter 10 and choose Pixels, the cropping rectangle will be positioned 10 pixels from the top edge of the overlay video's frame. When you enter 10, choose Percentage, and your overlay input video is 1920x1080, the cropping rectangle will be positioned 108 pixels from the top edge of the overlay video's frame.
        public let y: Int?

        @inlinable
        public init(height: Int? = nil, unit: VideoOverlayUnit? = nil, width: Int? = nil, x: Int? = nil, y: Int? = nil) {
            self.height = height
            self.unit = unit
            self.width = width
            self.x = x
            self.y = y
        }

        public func validate(name: String) throws {
            try self.validate(self.height, name: "height", parent: name, max: 2147483647)
            try self.validate(self.height, name: "height", parent: name, min: 0)
            try self.validate(self.width, name: "width", parent: name, max: 2147483647)
            try self.validate(self.width, name: "width", parent: name, min: 0)
            try self.validate(self.x, name: "x", parent: name, max: 2147483647)
            try self.validate(self.x, name: "x", parent: name, min: 0)
            try self.validate(self.y, name: "y", parent: name, max: 2147483647)
            try self.validate(self.y, name: "y", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case height = "height"
            case unit = "unit"
            case width = "width"
            case x = "x"
            case y = "y"
        }
    }

    public struct VideoOverlayInput: AWSEncodableShape & AWSDecodableShape {
        /// Specify the input file S3, HTTP, or HTTPS URL for your video overlay.
        /// To specify one or more Transitions for your base input video instead: Leave blank.
        public let fileInput: String?
        /// Specify one or more clips to use from your video overlay. When you include an input clip, you must also specify its start timecode, end timecode, or both start and end timecode.
        public let inputClippings: [VideoOverlayInputClipping]?
        /// Specify the timecode source for your video overlay input clips. To use the timecode present in your video overlay: Choose Embedded. To use a zerobased timecode: Choose Start at 0. To choose a timecode: Choose Specified start. When you do, enter the starting timecode in Start timecode. If you don't specify a value for Timecode source, MediaConvert uses Embedded by default.
        public let timecodeSource: InputTimecodeSource?
        /// Specify the starting timecode for this video overlay. To use this setting, you must set Timecode source to Specified start.
        public let timecodeStart: String?

        @inlinable
        public init(fileInput: String? = nil, inputClippings: [VideoOverlayInputClipping]? = nil, timecodeSource: InputTimecodeSource? = nil, timecodeStart: String? = nil) {
            self.fileInput = fileInput
            self.inputClippings = inputClippings
            self.timecodeSource = timecodeSource
            self.timecodeStart = timecodeStart
        }

        public func validate(name: String) throws {
            try self.validate(self.fileInput, name: "fileInput", parent: name, pattern: "^s3://([^\\/]+\\/+)+((([^\\/]*)))|^https?://[^\\/].*[^&]$")
            try self.inputClippings?.forEach {
                try $0.validate(name: "\(name).inputClippings[]")
            }
            try self.validate(self.timecodeStart, name: "timecodeStart", parent: name, max: 11)
            try self.validate(self.timecodeStart, name: "timecodeStart", parent: name, min: 11)
            try self.validate(self.timecodeStart, name: "timecodeStart", parent: name, pattern: "^((([0-1]\\d)|(2[0-3]))(:[0-5]\\d){2}([:;][0-5]\\d))$")
        }

        private enum CodingKeys: String, CodingKey {
            case fileInput = "fileInput"
            case inputClippings = "inputClippings"
            case timecodeSource = "timecodeSource"
            case timecodeStart = "timecodeStart"
        }
    }

    public struct VideoOverlayInputClipping: AWSEncodableShape & AWSDecodableShape {
        /// Specify the timecode of the last frame to include in your video overlay's clip. Use the format HH:MM:SS:FF or HH:MM:SS;FF, where HH is the hour, MM is the minute, SS is the second, and FF is the frame number. When entering this value, take into account your choice for Timecode source.
        public let endTimecode: String?
        /// Specify the timecode of the first frame to include in your video overlay's clip. Use the format HH:MM:SS:FF or HH:MM:SS;FF, where HH is the hour, MM is the minute, SS is the second, and FF is the frame number. When entering this value, take into account your choice for Timecode source.
        public let startTimecode: String?

        @inlinable
        public init(endTimecode: String? = nil, startTimecode: String? = nil) {
            self.endTimecode = endTimecode
            self.startTimecode = startTimecode
        }

        public func validate(name: String) throws {
            try self.validate(self.endTimecode, name: "endTimecode", parent: name, pattern: "^([01][0-9]|2[0-4]):[0-5][0-9]:[0-5][0-9][:;][0-9]{2}(@[0-9]+(\\.[0-9]+)?(:[0-9]+)?)?$")
            try self.validate(self.startTimecode, name: "startTimecode", parent: name, pattern: "^([01][0-9]|2[0-4]):[0-5][0-9]:[0-5][0-9][:;][0-9]{2}(@[0-9]+(\\.[0-9]+)?(:[0-9]+)?)?$")
        }

        private enum CodingKeys: String, CodingKey {
            case endTimecode = "endTimecode"
            case startTimecode = "startTimecode"
        }
    }

    public struct VideoOverlayPosition: AWSEncodableShape & AWSDecodableShape {
        /// To scale your video overlay to the same height as the base input video: Leave blank. To scale the height of your video overlay to a different height: Enter an integer representing the Unit type that you choose, either Pixels or Percentage. For example, when you enter 360 and choose Pixels, your video overlay will be rendered with a height of 360. When you enter 50, choose Percentage, and your overlay's source has a height of 1080, your video overlay will be rendered with a height of 540. To scale your overlay to a specific height while automatically maintaining its original aspect ratio, enter a value for Height and leave Width blank.
        public let height: Int?
        /// Specify the Unit type to use when you enter a value for X position, Y position, Width, or Height. You can choose Pixels or Percentage. Leave blank to use the default value, Pixels.
        public let unit: VideoOverlayUnit?
        /// To scale your video overlay to the same width as the base input video: Leave blank. To scale the width of your video overlay to a different width: Enter an integer representing the Unit type that you choose, either Pixels or Percentage. For example, when you enter 640 and choose Pixels, your video overlay will scale to a height of 640 pixels. When you enter 50, choose Percentage, and your overlay's source has a width of 1920, your video overlay will scale to a width of 960. To scale your overlay to a specific width while automatically maintaining its original aspect ratio, enter a value for Width and leave Height blank.
        public let width: Int?
        /// To position the left edge of your video overlay along the left edge of the base input video's frame: Keep blank, or enter 0. To position the left edge of your video overlay to the right, relative to the left edge of the base input video's frame: Enter an integer representing the Unit type that you choose, either Pixels or Percentage. For example, when you enter 10 and choose Pixels, your video overlay will be positioned 10 pixels from the left edge of the base input video's frame. When you enter 10, choose Percentage, and your base input video is 1920x1080, your video overlay will be positioned 192 pixels from the left edge of the base input video's frame.
        public let xPosition: Int?
        /// To position the top edge of your video overlay along the top edge of the base input video's frame: Keep blank, or enter 0. To position the top edge of your video overlay down, relative to the top edge of the base input video's frame: Enter an integer representing the Unit type that you choose, either Pixels or Percentage. For example, when you enter 10 and choose Pixels, your video overlay will be positioned 10 pixels from the top edge of the base input video's frame. When you enter 10, choose Percentage, and your underlying video is 1920x1080, your video overlay will be positioned 108 pixels from the top edge of the base input video's frame.
        public let yPosition: Int?

        @inlinable
        public init(height: Int? = nil, unit: VideoOverlayUnit? = nil, width: Int? = nil, xPosition: Int? = nil, yPosition: Int? = nil) {
            self.height = height
            self.unit = unit
            self.width = width
            self.xPosition = xPosition
            self.yPosition = yPosition
        }

        public func validate(name: String) throws {
            try self.validate(self.height, name: "height", parent: name, max: 2147483647)
            try self.validate(self.height, name: "height", parent: name, min: -1)
            try self.validate(self.width, name: "width", parent: name, max: 2147483647)
            try self.validate(self.width, name: "width", parent: name, min: -1)
            try self.validate(self.xPosition, name: "xPosition", parent: name, max: 2147483647)
            try self.validate(self.xPosition, name: "xPosition", parent: name, min: -2147483648)
            try self.validate(self.yPosition, name: "yPosition", parent: name, max: 2147483647)
            try self.validate(self.yPosition, name: "yPosition", parent: name, min: -2147483648)
        }

        private enum CodingKeys: String, CodingKey {
            case height = "height"
            case unit = "unit"
            case width = "width"
            case xPosition = "xPosition"
            case yPosition = "yPosition"
        }
    }

    public struct VideoOverlayTransition: AWSEncodableShape & AWSDecodableShape {
        /// Specify the ending position for this transition, relative to the base input video's frame. Your video overlay will move smoothly to this position, beginning at this transition's Start timecode and ending at this transition's End timecode.
        public let endPosition: VideoOverlayPosition?
        /// Specify the timecode for when this transition ends. Use the format HH:MM:SS:FF or HH:MM:SS;FF, where HH is the hour, MM is the minute, SS is the second, and FF is the frame number. When entering this value, take into account your choice for Timecode source.
        public let endTimecode: String?
        /// Specify the timecode for when this transition begins. Use the format HH:MM:SS:FF or HH:MM:SS;FF, where HH is the hour, MM is the minute, SS is the second, and FF is the frame number. When entering this value, take into account your choice for Timecode source.
        public let startTimecode: String?

        @inlinable
        public init(endPosition: VideoOverlayPosition? = nil, endTimecode: String? = nil, startTimecode: String? = nil) {
            self.endPosition = endPosition
            self.endTimecode = endTimecode
            self.startTimecode = startTimecode
        }

        public func validate(name: String) throws {
            try self.endPosition?.validate(name: "\(name).endPosition")
            try self.validate(self.endTimecode, name: "endTimecode", parent: name, pattern: "^([01][0-9]|2[0-4]):[0-5][0-9]:[0-5][0-9][:;][0-9]{2}$")
            try self.validate(self.startTimecode, name: "startTimecode", parent: name, pattern: "^([01][0-9]|2[0-4]):[0-5][0-9]:[0-5][0-9][:;][0-9]{2}$")
        }

        private enum CodingKeys: String, CodingKey {
            case endPosition = "endPosition"
            case endTimecode = "endTimecode"
            case startTimecode = "startTimecode"
        }
    }

    public struct VideoPreprocessor: AWSEncodableShape & AWSDecodableShape {
        /// Use these settings to convert the color space or to modify properties such as hue and contrast for this output. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/converting-the-color-space.html.
        public let colorCorrector: ColorCorrector?
        /// Use the deinterlacer to produce smoother motion and a clearer picture. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-scan-type.html.
        public let deinterlacer: Deinterlacer?
        /// Enable Dolby Vision feature to produce Dolby Vision compatible video output.
        public let dolbyVision: DolbyVision?
        /// Enable HDR10+ analysis and metadata injection. Compatible with HEVC only.
        public let hdr10Plus: Hdr10Plus?
        /// Enable the Image inserter feature to include a graphic overlay on your video. Enable or disable this feature for each output individually. This setting is disabled by default.
        public let imageInserter: ImageInserter?
        /// Enable the Noise reducer feature to remove noise from your video output if necessary. Enable or disable this feature for each output individually. This setting is disabled by default. When you enable Noise reducer, you must also select a value for Noise reducer filter. For AVC outputs, when you include Noise reducer, you cannot include the Bandwidth reduction filter.
        public let noiseReducer: NoiseReducer?
        /// If you work with a third party video watermarking partner, use the group of settings that correspond with your watermarking partner to include watermarks in your output.
        public let partnerWatermarking: PartnerWatermarking?
        /// Settings for burning the output timecode and specified prefix into the output.
        public let timecodeBurnin: TimecodeBurnin?

        @inlinable
        public init(colorCorrector: ColorCorrector? = nil, deinterlacer: Deinterlacer? = nil, dolbyVision: DolbyVision? = nil, hdr10Plus: Hdr10Plus? = nil, imageInserter: ImageInserter? = nil, noiseReducer: NoiseReducer? = nil, partnerWatermarking: PartnerWatermarking? = nil, timecodeBurnin: TimecodeBurnin? = nil) {
            self.colorCorrector = colorCorrector
            self.deinterlacer = deinterlacer
            self.dolbyVision = dolbyVision
            self.hdr10Plus = hdr10Plus
            self.imageInserter = imageInserter
            self.noiseReducer = noiseReducer
            self.partnerWatermarking = partnerWatermarking
            self.timecodeBurnin = timecodeBurnin
        }

        public func validate(name: String) throws {
            try self.colorCorrector?.validate(name: "\(name).colorCorrector")
            try self.dolbyVision?.validate(name: "\(name).dolbyVision")
            try self.hdr10Plus?.validate(name: "\(name).hdr10Plus")
            try self.imageInserter?.validate(name: "\(name).imageInserter")
            try self.noiseReducer?.validate(name: "\(name).noiseReducer")
            try self.partnerWatermarking?.validate(name: "\(name).partnerWatermarking")
            try self.timecodeBurnin?.validate(name: "\(name).timecodeBurnin")
        }

        private enum CodingKeys: String, CodingKey {
            case colorCorrector = "colorCorrector"
            case deinterlacer = "deinterlacer"
            case dolbyVision = "dolbyVision"
            case hdr10Plus = "hdr10Plus"
            case imageInserter = "imageInserter"
            case noiseReducer = "noiseReducer"
            case partnerWatermarking = "partnerWatermarking"
            case timecodeBurnin = "timecodeBurnin"
        }
    }

    public struct VideoProperties: AWSDecodableShape {
        /// The bit depth of the video track.
        public let bitDepth: Int?
        /// The bit rate of the video track, in bits per second.
        public let bitRate: Int64?
        /// The color space color primaries of the video track.
        public let colorPrimaries: ColorPrimaries?
        /// The frame rate of the video or audio track.
        public let frameRate: FrameRate?
        /// The height of the video track, in pixels.
        public let height: Int?
        /// The color space matrix coefficients of the video track.
        public let matrixCoefficients: MatrixCoefficients?
        /// The color space transfer characteristics of the video track.
        public let transferCharacteristics: TransferCharacteristics?
        /// The width of the video track, in pixels.
        public let width: Int?

        @inlinable
        public init(bitDepth: Int? = nil, bitRate: Int64? = nil, colorPrimaries: ColorPrimaries? = nil, frameRate: FrameRate? = nil, height: Int? = nil, matrixCoefficients: MatrixCoefficients? = nil, transferCharacteristics: TransferCharacteristics? = nil, width: Int? = nil) {
            self.bitDepth = bitDepth
            self.bitRate = bitRate
            self.colorPrimaries = colorPrimaries
            self.frameRate = frameRate
            self.height = height
            self.matrixCoefficients = matrixCoefficients
            self.transferCharacteristics = transferCharacteristics
            self.width = width
        }

        private enum CodingKeys: String, CodingKey {
            case bitDepth = "bitDepth"
            case bitRate = "bitRate"
            case colorPrimaries = "colorPrimaries"
            case frameRate = "frameRate"
            case height = "height"
            case matrixCoefficients = "matrixCoefficients"
            case transferCharacteristics = "transferCharacteristics"
            case width = "width"
        }
    }

    public struct VideoSelector: AWSEncodableShape & AWSDecodableShape {
        /// Ignore this setting unless this input is a QuickTime animation with an alpha channel. Use this setting to create separate Key and Fill outputs. In each output, specify which part of the input MediaConvert uses. Leave this setting at the default value DISCARD to delete the alpha channel and preserve the video. Set it to REMAP_TO_LUMA to delete the video and map the alpha channel to the luma channel of your outputs.
        public let alphaBehavior: AlphaBehavior?
        /// If your input video has accurate color space metadata, or if you don't know about color space: Keep the default value, Follow. MediaConvert will automatically detect your input color space. If your input video has metadata indicating the wrong color space, or has missing metadata: Specify the accurate color space here. If your input video is HDR 10 and the SMPTE ST 2086 Mastering Display Color Volume static metadata isn't present in your video stream, or if that metadata is present but not accurate: Choose Force HDR 10. Specify correct values in the input HDR 10 metadata settings. For more information about HDR jobs, see https://docs.aws.amazon.com/console/mediaconvert/hdr. When you specify an input color space, MediaConvert uses the following color space metadata, which includes color primaries, transfer characteristics, and matrix coefficients: * HDR 10: BT.2020, PQ, BT.2020 non-constant * HLG 2020: BT.2020, HLG, BT.2020 non-constant * P3DCI (Theater): DCIP3, SMPTE 428M, BT.709 * P3D65 (SDR): Display P3, sRGB, BT.709 * P3D65 (HDR): Display P3, PQ, BT.709
        public let colorSpace: ColorSpace?
        /// There are two sources for color metadata, the input file and the job input settings Color space and HDR master display information settings. The Color space usage setting determines which takes precedence. Choose Force to use color metadata from the input job settings. If you don't specify values for those settings, the service defaults to using metadata from your input. FALLBACK - Choose Fallback to use color metadata from the source when it is present. If there's no color metadata in your input file, the service defaults to using values you specify in the input settings.
        public let colorSpaceUsage: ColorSpaceUsage?
        /// Set Embedded timecode override to Use MDPM when your AVCHD input contains timecode tag data in the Modified Digital Video Pack Metadata. When you do, we recommend you also set Timecode source to Embedded. Leave Embedded timecode override blank, or set to None, when your input does not contain MDPM timecode.
        public let embeddedTimecodeOverride: EmbeddedTimecodeOverride?
        /// Use these settings to provide HDR 10 metadata that is missing or inaccurate in your input video. Appropriate values vary depending on the input video and must be provided by a color grader. The color grader generates these values during the HDR 10 mastering process. The valid range for each of these settings is 0 to 50,000. Each increment represents 0.00002 in CIE1931 color coordinate. Related settings - When you specify these values, you must also set Color space to HDR 10. To specify whether the the values you specify here take precedence over the values in the metadata of your input file, set Color space usage. To specify whether color metadata is included in an output, set Color metadata. For more information about MediaConvert HDR jobs, see https://docs.aws.amazon.com/console/mediaconvert/hdr.
        public let hdr10Metadata: Hdr10Metadata?
        /// Specify the maximum mastering display luminance. Enter an integer from 0 to 2147483647, in units of 0.0001 nits. For example, enter 10000000 for 1000 nits.
        public let maxLuminance: Int?
        /// Use this setting if your input has video and audio durations that don't align, and your output or player has strict alignment requirements. Examples: Input audio track has a delayed start. Input video track ends before audio ends. When you set Pad video to Black, MediaConvert generates black video frames so that output video and audio durations match. Black video frames are added at the beginning or end, depending on your input. To keep the default behavior and not generate black video, set Pad video to Disabled or leave blank.
        public let padVideo: PadVideo?
        /// Use PID to select specific video data from an input file. Specify this value as an integer; the system automatically converts it to the hexidecimal value. For example, 257 selects PID 0x101. A PID, or packet identifier, is an identifier for a set of data in an MPEG-2 transport stream container.
        public let pid: Int?
        /// Selects a specific program from within a multi-program transport stream. Note that Quad 4K is not currently supported.
        public let programNumber: Int?
        /// Use Rotate to specify how the service rotates your video. You can choose automatic rotation or specify a rotation. You can specify a clockwise rotation of 0, 90, 180, or 270 degrees. If your input video container is .mov or .mp4 and your input has rotation metadata, you can choose Automatic to have the service rotate your video according to the rotation specified in the metadata. The rotation must be within one degree of 90, 180, or 270 degrees. If the rotation metadata specifies any other rotation, the service will default to no rotation. By default, the service does no rotation, even if your input video has rotation metadata. The service doesn't pass through rotation metadata.
        public let rotate: InputRotate?
        /// If the sample range metadata in your input video is accurate, or if you don't know about sample range, keep the default value, Follow, for this setting. When you do, the service automatically detects your input sample range. If your input video has metadata indicating the wrong sample range, specify the accurate sample range here. When you do, MediaConvert ignores any sample range information in the input metadata. Regardless of whether MediaConvert uses the input sample range or the sample range that you specify, MediaConvert uses the sample range for transcoding and also writes it to the output metadata.
        public let sampleRange: InputSampleRange?

        @inlinable
        public init(alphaBehavior: AlphaBehavior? = nil, colorSpace: ColorSpace? = nil, colorSpaceUsage: ColorSpaceUsage? = nil, embeddedTimecodeOverride: EmbeddedTimecodeOverride? = nil, hdr10Metadata: Hdr10Metadata? = nil, maxLuminance: Int? = nil, padVideo: PadVideo? = nil, pid: Int? = nil, programNumber: Int? = nil, rotate: InputRotate? = nil, sampleRange: InputSampleRange? = nil) {
            self.alphaBehavior = alphaBehavior
            self.colorSpace = colorSpace
            self.colorSpaceUsage = colorSpaceUsage
            self.embeddedTimecodeOverride = embeddedTimecodeOverride
            self.hdr10Metadata = hdr10Metadata
            self.maxLuminance = maxLuminance
            self.padVideo = padVideo
            self.pid = pid
            self.programNumber = programNumber
            self.rotate = rotate
            self.sampleRange = sampleRange
        }

        public func validate(name: String) throws {
            try self.hdr10Metadata?.validate(name: "\(name).hdr10Metadata")
            try self.validate(self.maxLuminance, name: "maxLuminance", parent: name, max: 2147483647)
            try self.validate(self.maxLuminance, name: "maxLuminance", parent: name, min: 0)
            try self.validate(self.pid, name: "pid", parent: name, max: 2147483647)
            try self.validate(self.pid, name: "pid", parent: name, min: 1)
            try self.validate(self.programNumber, name: "programNumber", parent: name, max: 2147483647)
            try self.validate(self.programNumber, name: "programNumber", parent: name, min: -2147483648)
        }

        private enum CodingKeys: String, CodingKey {
            case alphaBehavior = "alphaBehavior"
            case colorSpace = "colorSpace"
            case colorSpaceUsage = "colorSpaceUsage"
            case embeddedTimecodeOverride = "embeddedTimecodeOverride"
            case hdr10Metadata = "hdr10Metadata"
            case maxLuminance = "maxLuminance"
            case padVideo = "padVideo"
            case pid = "pid"
            case programNumber = "programNumber"
            case rotate = "rotate"
            case sampleRange = "sampleRange"
        }
    }

    public struct VorbisSettings: AWSEncodableShape & AWSDecodableShape {
        /// Optional. Specify the number of channels in this output audio track. Choosing Mono on the console gives you 1 output channel; choosing Stereo gives you 2. In the API, valid values are 1 and 2. The default value is 2.
        public let channels: Int?
        /// Optional. Specify the audio sample rate in Hz. Valid values are 22050, 32000, 44100, and 48000. The default value is 48000.
        public let sampleRate: Int?
        /// Optional. Specify the variable audio quality of this Vorbis output from -1 (lowest quality, ~45 kbit/s) to 10 (highest quality, ~500 kbit/s). The default value is 4 (~128 kbit/s). Values 5 and 6 are approximately 160 and 192 kbit/s, respectively.
        public let vbrQuality: Int?

        @inlinable
        public init(channels: Int? = nil, sampleRate: Int? = nil, vbrQuality: Int? = nil) {
            self.channels = channels
            self.sampleRate = sampleRate
            self.vbrQuality = vbrQuality
        }

        public func validate(name: String) throws {
            try self.validate(self.channels, name: "channels", parent: name, max: 2)
            try self.validate(self.channels, name: "channels", parent: name, min: 1)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, max: 48000)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, min: 22050)
            try self.validate(self.vbrQuality, name: "vbrQuality", parent: name, max: 10)
            try self.validate(self.vbrQuality, name: "vbrQuality", parent: name, min: -1)
        }

        private enum CodingKeys: String, CodingKey {
            case channels = "channels"
            case sampleRate = "sampleRate"
            case vbrQuality = "vbrQuality"
        }
    }

    public struct Vp8Settings: AWSEncodableShape & AWSDecodableShape {
        /// Target bitrate in bits/second. For example, enter five megabits per second as 5000000.
        public let bitrate: Int?
        /// If you are using the console, use the Framerate setting to specify the frame rate for this output. If you want to keep the same frame rate as the input video, choose Follow source. If you want to do frame rate conversion, choose a frame rate from the dropdown list or choose Custom. The framerates shown in the dropdown list are decimal approximations of fractions. If you choose Custom, specify your frame rate as a fraction.
        public let framerateControl: Vp8FramerateControl?
        /// Choose the method that you want MediaConvert to use when increasing or decreasing your video's frame rate. For numerically simple conversions, such as 60 fps to 30 fps: We recommend that you keep the default value, Drop duplicate. For numerically complex conversions, to avoid stutter: Choose Interpolate. This results in a smooth picture, but might introduce undesirable video artifacts. For complex frame rate conversions, especially if your source video has already been converted from its original cadence: Choose FrameFormer to do motion-compensated interpolation. FrameFormer uses the best conversion method frame by frame. Note that using FrameFormer increases the transcoding time and incurs a significant add-on cost. When you choose FrameFormer, your input video resolution must be at least 128x96. To create an output with the same number of frames as your input: Choose Maintain frame count. When you do, MediaConvert will not drop, interpolate, add, or otherwise change the frame count from your input to your output. Note that since the frame count is maintained, the duration of your output will become shorter at higher frame rates and longer at lower frame rates.
        public let framerateConversionAlgorithm: Vp8FramerateConversionAlgorithm?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateDenominator to specify the denominator of this fraction. In this example, use 1001 for the value of FramerateDenominator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateDenominator: Int?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateNumerator to specify the numerator of this fraction. In this example, use 24000 for the value of FramerateNumerator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateNumerator: Int?
        /// GOP Length (keyframe interval) in frames. Must be greater than zero.
        public let gopSize: Double?
        /// Optional. Size of buffer (HRD buffer model) in bits. For example, enter five megabits as 5000000.
        public let hrdBufferSize: Int?
        /// Ignore this setting unless you set qualityTuningLevel to MULTI_PASS. Optional. Specify the maximum bitrate in bits/second. For example, enter five megabits per second as 5000000. The default behavior uses twice the target bitrate as the maximum bitrate.
        public let maxBitrate: Int?
        /// Optional. Specify how the service determines the pixel aspect ratio (PAR) for this output. The default behavior, Follow source, uses the PAR from your input video for your output. To specify a different PAR in the console, choose any value other than Follow source. When you choose SPECIFIED for this setting, you must also specify values for the parNumerator and parDenominator settings.
        public let parControl: Vp8ParControl?
        /// Required when you set Pixel aspect ratio to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parDenominator is 33.
        public let parDenominator: Int?
        /// Required when you set Pixel aspect ratio to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parNumerator is 40.
        public let parNumerator: Int?
        /// Optional. Use Quality tuning level to choose how you want to trade off encoding speed for output video quality. The default behavior is faster, lower quality, multi-pass encoding.
        public let qualityTuningLevel: Vp8QualityTuningLevel?
        /// With the VP8 codec, you can use only the variable bitrate (VBR) rate control mode.
        public let rateControlMode: Vp8RateControlMode?

        @inlinable
        public init(bitrate: Int? = nil, framerateControl: Vp8FramerateControl? = nil, framerateConversionAlgorithm: Vp8FramerateConversionAlgorithm? = nil, framerateDenominator: Int? = nil, framerateNumerator: Int? = nil, gopSize: Double? = nil, hrdBufferSize: Int? = nil, maxBitrate: Int? = nil, parControl: Vp8ParControl? = nil, parDenominator: Int? = nil, parNumerator: Int? = nil, qualityTuningLevel: Vp8QualityTuningLevel? = nil, rateControlMode: Vp8RateControlMode? = nil) {
            self.bitrate = bitrate
            self.framerateControl = framerateControl
            self.framerateConversionAlgorithm = framerateConversionAlgorithm
            self.framerateDenominator = framerateDenominator
            self.framerateNumerator = framerateNumerator
            self.gopSize = gopSize
            self.hrdBufferSize = hrdBufferSize
            self.maxBitrate = maxBitrate
            self.parControl = parControl
            self.parDenominator = parDenominator
            self.parNumerator = parNumerator
            self.qualityTuningLevel = qualityTuningLevel
            self.rateControlMode = rateControlMode
        }

        public func validate(name: String) throws {
            try self.validate(self.bitrate, name: "bitrate", parent: name, max: 1152000000)
            try self.validate(self.bitrate, name: "bitrate", parent: name, min: 1000)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, max: 2147483647)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, min: 1)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, max: 2147483647)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, min: 1)
            try self.validate(self.hrdBufferSize, name: "hrdBufferSize", parent: name, max: 47185920)
            try self.validate(self.hrdBufferSize, name: "hrdBufferSize", parent: name, min: 0)
            try self.validate(self.maxBitrate, name: "maxBitrate", parent: name, max: 1152000000)
            try self.validate(self.maxBitrate, name: "maxBitrate", parent: name, min: 1000)
            try self.validate(self.parDenominator, name: "parDenominator", parent: name, max: 2147483647)
            try self.validate(self.parDenominator, name: "parDenominator", parent: name, min: 1)
            try self.validate(self.parNumerator, name: "parNumerator", parent: name, max: 2147483647)
            try self.validate(self.parNumerator, name: "parNumerator", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case bitrate = "bitrate"
            case framerateControl = "framerateControl"
            case framerateConversionAlgorithm = "framerateConversionAlgorithm"
            case framerateDenominator = "framerateDenominator"
            case framerateNumerator = "framerateNumerator"
            case gopSize = "gopSize"
            case hrdBufferSize = "hrdBufferSize"
            case maxBitrate = "maxBitrate"
            case parControl = "parControl"
            case parDenominator = "parDenominator"
            case parNumerator = "parNumerator"
            case qualityTuningLevel = "qualityTuningLevel"
            case rateControlMode = "rateControlMode"
        }
    }

    public struct Vp9Settings: AWSEncodableShape & AWSDecodableShape {
        /// Target bitrate in bits/second. For example, enter five megabits per second as 5000000.
        public let bitrate: Int?
        /// If you are using the console, use the Framerate setting to specify the frame rate for this output. If you want to keep the same frame rate as the input video, choose Follow source. If you want to do frame rate conversion, choose a frame rate from the dropdown list or choose Custom. The framerates shown in the dropdown list are decimal approximations of fractions. If you choose Custom, specify your frame rate as a fraction.
        public let framerateControl: Vp9FramerateControl?
        /// Choose the method that you want MediaConvert to use when increasing or decreasing your video's frame rate. For numerically simple conversions, such as 60 fps to 30 fps: We recommend that you keep the default value, Drop duplicate. For numerically complex conversions, to avoid stutter: Choose Interpolate. This results in a smooth picture, but might introduce undesirable video artifacts. For complex frame rate conversions, especially if your source video has already been converted from its original cadence: Choose FrameFormer to do motion-compensated interpolation. FrameFormer uses the best conversion method frame by frame. Note that using FrameFormer increases the transcoding time and incurs a significant add-on cost. When you choose FrameFormer, your input video resolution must be at least 128x96. To create an output with the same number of frames as your input: Choose Maintain frame count. When you do, MediaConvert will not drop, interpolate, add, or otherwise change the frame count from your input to your output. Note that since the frame count is maintained, the duration of your output will become shorter at higher frame rates and longer at lower frame rates.
        public let framerateConversionAlgorithm: Vp9FramerateConversionAlgorithm?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateDenominator to specify the denominator of this fraction. In this example, use 1001 for the value of FramerateDenominator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateDenominator: Int?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateNumerator to specify the numerator of this fraction. In this example, use 24000 for the value of FramerateNumerator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateNumerator: Int?
        /// GOP Length (keyframe interval) in frames. Must be greater than zero.
        public let gopSize: Double?
        /// Size of buffer (HRD buffer model) in bits. For example, enter five megabits as 5000000.
        public let hrdBufferSize: Int?
        /// Ignore this setting unless you set qualityTuningLevel to MULTI_PASS. Optional. Specify the maximum bitrate in bits/second. For example, enter five megabits per second as 5000000. The default behavior uses twice the target bitrate as the maximum bitrate.
        public let maxBitrate: Int?
        /// Optional. Specify how the service determines the pixel aspect ratio for this output. The default behavior is to use the same pixel aspect ratio as your input video.
        public let parControl: Vp9ParControl?
        /// Required when you set Pixel aspect ratio to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parDenominator is 33.
        public let parDenominator: Int?
        /// Required when you set Pixel aspect ratio to SPECIFIED. On the console, this corresponds to any value other than Follow source. When you specify an output pixel aspect ratio (PAR) that is different from your input video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would specify the ratio 40:33. In this example, the value for parNumerator is 40.
        public let parNumerator: Int?
        /// Optional. Use Quality tuning level to choose how you want to trade off encoding speed for output video quality. The default behavior is faster, lower quality, multi-pass encoding.
        public let qualityTuningLevel: Vp9QualityTuningLevel?
        /// With the VP9 codec, you can use only the variable bitrate (VBR) rate control mode.
        public let rateControlMode: Vp9RateControlMode?

        @inlinable
        public init(bitrate: Int? = nil, framerateControl: Vp9FramerateControl? = nil, framerateConversionAlgorithm: Vp9FramerateConversionAlgorithm? = nil, framerateDenominator: Int? = nil, framerateNumerator: Int? = nil, gopSize: Double? = nil, hrdBufferSize: Int? = nil, maxBitrate: Int? = nil, parControl: Vp9ParControl? = nil, parDenominator: Int? = nil, parNumerator: Int? = nil, qualityTuningLevel: Vp9QualityTuningLevel? = nil, rateControlMode: Vp9RateControlMode? = nil) {
            self.bitrate = bitrate
            self.framerateControl = framerateControl
            self.framerateConversionAlgorithm = framerateConversionAlgorithm
            self.framerateDenominator = framerateDenominator
            self.framerateNumerator = framerateNumerator
            self.gopSize = gopSize
            self.hrdBufferSize = hrdBufferSize
            self.maxBitrate = maxBitrate
            self.parControl = parControl
            self.parDenominator = parDenominator
            self.parNumerator = parNumerator
            self.qualityTuningLevel = qualityTuningLevel
            self.rateControlMode = rateControlMode
        }

        public func validate(name: String) throws {
            try self.validate(self.bitrate, name: "bitrate", parent: name, max: 480000000)
            try self.validate(self.bitrate, name: "bitrate", parent: name, min: 1000)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, max: 2147483647)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, min: 1)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, max: 2147483647)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, min: 1)
            try self.validate(self.hrdBufferSize, name: "hrdBufferSize", parent: name, max: 47185920)
            try self.validate(self.hrdBufferSize, name: "hrdBufferSize", parent: name, min: 0)
            try self.validate(self.maxBitrate, name: "maxBitrate", parent: name, max: 480000000)
            try self.validate(self.maxBitrate, name: "maxBitrate", parent: name, min: 1000)
            try self.validate(self.parDenominator, name: "parDenominator", parent: name, max: 2147483647)
            try self.validate(self.parDenominator, name: "parDenominator", parent: name, min: 1)
            try self.validate(self.parNumerator, name: "parNumerator", parent: name, max: 2147483647)
            try self.validate(self.parNumerator, name: "parNumerator", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case bitrate = "bitrate"
            case framerateControl = "framerateControl"
            case framerateConversionAlgorithm = "framerateConversionAlgorithm"
            case framerateDenominator = "framerateDenominator"
            case framerateNumerator = "framerateNumerator"
            case gopSize = "gopSize"
            case hrdBufferSize = "hrdBufferSize"
            case maxBitrate = "maxBitrate"
            case parControl = "parControl"
            case parDenominator = "parDenominator"
            case parNumerator = "parNumerator"
            case qualityTuningLevel = "qualityTuningLevel"
            case rateControlMode = "rateControlMode"
        }
    }

    public struct WarningGroup: AWSDecodableShape {
        /// Warning code that identifies a specific warning in the job. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/warning_codes.html
        public let code: Int?
        /// The number of times this warning occurred in the job.
        public let count: Int?

        @inlinable
        public init(code: Int? = nil, count: Int? = nil) {
            self.code = code
            self.count = count
        }

        private enum CodingKeys: String, CodingKey {
            case code = "code"
            case count = "count"
        }
    }

    public struct WavSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify Bit depth, in bits per sample, to choose the encoding quality for this audio track.
        public let bitDepth: Int?
        /// Specify the number of channels in this output audio track. Valid values are 1 and even numbers up to 64. For example, 1, 2, 4, 6, and so on, up to 64.
        public let channels: Int?
        /// Specify the file format for your wave audio output. To use a RIFF wave format: Keep the default value, RIFF. If your output audio is likely to exceed 4GB in file size, or if you otherwise need the extended support of the RF64 format: Choose RF64. If your player only supports the extensible wave format: Choose Extensible.
        public let format: WavFormat?
        /// Sample rate in Hz.
        public let sampleRate: Int?

        @inlinable
        public init(bitDepth: Int? = nil, channels: Int? = nil, format: WavFormat? = nil, sampleRate: Int? = nil) {
            self.bitDepth = bitDepth
            self.channels = channels
            self.format = format
            self.sampleRate = sampleRate
        }

        public func validate(name: String) throws {
            try self.validate(self.bitDepth, name: "bitDepth", parent: name, max: 24)
            try self.validate(self.bitDepth, name: "bitDepth", parent: name, min: 16)
            try self.validate(self.channels, name: "channels", parent: name, max: 64)
            try self.validate(self.channels, name: "channels", parent: name, min: 1)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, max: 192000)
            try self.validate(self.sampleRate, name: "sampleRate", parent: name, min: 8000)
        }

        private enum CodingKeys: String, CodingKey {
            case bitDepth = "bitDepth"
            case channels = "channels"
            case format = "format"
            case sampleRate = "sampleRate"
        }
    }

    public struct WebvttDestinationSettings: AWSEncodableShape & AWSDecodableShape {
        /// If the WebVTT captions track is intended to provide accessibility for people who are deaf or hard of hearing: Set Accessibility subtitles to Enabled. When you do, MediaConvert adds accessibility attributes to your output HLS or DASH manifest. For HLS manifests, MediaConvert adds the following accessibility attributes under EXT-X-MEDIA for this track: CHARACTERISTICS="public.accessibility.describes-spoken-dialog,public.accessibility.describes-music-and-sound" and AUTOSELECT="YES". For DASH manifests, MediaConvert adds the following in the adaptation set for this track: . If the captions track is not intended to provide such accessibility: Keep the default value, Disabled. When you do, for DASH manifests, MediaConvert instead adds the following in the adaptation set for this track: .
        public let accessibility: WebvttAccessibilitySubs?
        /// Specify how MediaConvert writes style information in your output WebVTT captions. To use the available style, color, and position information from your input captions: Choose Enabled. MediaConvert uses default settings when style and position information is missing from your input captions. To recreate the input captions exactly: Choose Strict. MediaConvert automatically applies timing adjustments, including adjustments for frame rate conversion, ad avails, and input clipping. Your input captions format must be WebVTT. To ignore the style and position information from your input captions and use simplified output captions: Keep the default value, Disabled. Or leave blank. To use the available style, color, and position information from your input captions, while merging cues with identical time ranges: Choose merge. This setting can help prevent positioning overlaps for certain players that expect a single single cue for any given time range.
        public let stylePassthrough: WebvttStylePassthrough?

        @inlinable
        public init(accessibility: WebvttAccessibilitySubs? = nil, stylePassthrough: WebvttStylePassthrough? = nil) {
            self.accessibility = accessibility
            self.stylePassthrough = stylePassthrough
        }

        private enum CodingKeys: String, CodingKey {
            case accessibility = "accessibility"
            case stylePassthrough = "stylePassthrough"
        }
    }

    public struct WebvttHlsSourceSettings: AWSEncodableShape & AWSDecodableShape {
        /// Optional. Specify alternative group ID
        public let renditionGroupId: String?
        /// Optional. Specify ISO 639-2 or ISO 639-3 code in the language property
        public let renditionLanguageCode: LanguageCode?
        /// Optional. Specify media name
        public let renditionName: String?

        @inlinable
        public init(renditionGroupId: String? = nil, renditionLanguageCode: LanguageCode? = nil, renditionName: String? = nil) {
            self.renditionGroupId = renditionGroupId
            self.renditionLanguageCode = renditionLanguageCode
            self.renditionName = renditionName
        }

        private enum CodingKeys: String, CodingKey {
            case renditionGroupId = "renditionGroupId"
            case renditionLanguageCode = "renditionLanguageCode"
            case renditionName = "renditionName"
        }
    }

    public struct Xavc4kIntraCbgProfileSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify the XAVC Intra 4k (CBG) Class to set the bitrate of your output. Outputs of the same class have similar image quality over the operating points that are valid for that class.
        public let xavcClass: Xavc4kIntraCbgProfileClass?

        @inlinable
        public init(xavcClass: Xavc4kIntraCbgProfileClass? = nil) {
            self.xavcClass = xavcClass
        }

        private enum CodingKeys: String, CodingKey {
            case xavcClass = "xavcClass"
        }
    }

    public struct Xavc4kIntraVbrProfileSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify the XAVC Intra 4k (VBR) Class to set the bitrate of your output. Outputs of the same class have similar image quality over the operating points that are valid for that class.
        public let xavcClass: Xavc4kIntraVbrProfileClass?

        @inlinable
        public init(xavcClass: Xavc4kIntraVbrProfileClass? = nil) {
            self.xavcClass = xavcClass
        }

        private enum CodingKeys: String, CodingKey {
            case xavcClass = "xavcClass"
        }
    }

    public struct Xavc4kProfileSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify the XAVC 4k (Long GOP) Bitrate Class to set the bitrate of your output. Outputs of the same class have similar image quality over the operating points that are valid for that class.
        public let bitrateClass: Xavc4kProfileBitrateClass?
        /// Specify the codec profile for this output. Choose High, 8-bit, 4:2:0 (HIGH) or High, 10-bit, 4:2:2 (HIGH_422). These profiles are specified in ITU-T H.264.
        public let codecProfile: Xavc4kProfileCodecProfile?
        /// The best way to set up adaptive quantization is to keep the default value, Auto, for the setting Adaptive quantization. When you do so, MediaConvert automatically applies the best types of quantization for your video content. Include this setting in your JSON job specification only when you choose to change the default value for Adaptive quantization. Enable this setting to have the encoder reduce I-frame pop. I-frame pop appears as a visual flicker that can arise when the encoder saves bits by copying some macroblocks many times from frame to frame, and then refreshes them at the I-frame. When you enable this setting, the encoder updates these macroblocks slightly more often to smooth out the flicker. This setting is disabled by default. Related setting: In addition to enabling this setting, you must also set Adaptive quantization to a value other than Off or Auto. Use Adaptive quantization to adjust the degree of smoothing that Flicker adaptive quantization provides.
        public let flickerAdaptiveQuantization: XavcFlickerAdaptiveQuantization?
        /// Specify whether the encoder uses B-frames as reference frames for other pictures in the same GOP. Choose Allow to allow the encoder to use B-frames as reference frames. Choose Don't allow to prevent the encoder from using B-frames as reference frames.
        public let gopBReference: XavcGopBReference?
        /// Frequency of closed GOPs. In streaming applications, it is recommended that this be set to 1 so a decoder joining mid-stream will receive an IDR frame as quickly as possible. Setting this value to 0 will break output segmenting.
        public let gopClosedCadence: Int?
        /// Specify the size of the buffer that MediaConvert uses in the HRD buffer model for this output. Specify this value in bits; for example, enter five megabits as 5000000. When you don't set this value, or you set it to zero, MediaConvert calculates the default by doubling the bitrate of this output point.
        public let hrdBufferSize: Int?
        /// Optional. Use Quality tuning level to choose how you want to trade off encoding speed for output video quality. The default behavior is faster, lower quality, single-pass encoding.
        public let qualityTuningLevel: Xavc4kProfileQualityTuningLevel?
        /// Number of slices per picture. Must be less than or equal to the number of macroblock rows for progressive pictures, and less than or equal to half the number of macroblock rows for interlaced pictures.
        public let slices: Int?

        @inlinable
        public init(bitrateClass: Xavc4kProfileBitrateClass? = nil, codecProfile: Xavc4kProfileCodecProfile? = nil, flickerAdaptiveQuantization: XavcFlickerAdaptiveQuantization? = nil, gopBReference: XavcGopBReference? = nil, gopClosedCadence: Int? = nil, hrdBufferSize: Int? = nil, qualityTuningLevel: Xavc4kProfileQualityTuningLevel? = nil, slices: Int? = nil) {
            self.bitrateClass = bitrateClass
            self.codecProfile = codecProfile
            self.flickerAdaptiveQuantization = flickerAdaptiveQuantization
            self.gopBReference = gopBReference
            self.gopClosedCadence = gopClosedCadence
            self.hrdBufferSize = hrdBufferSize
            self.qualityTuningLevel = qualityTuningLevel
            self.slices = slices
        }

        public func validate(name: String) throws {
            try self.validate(self.gopClosedCadence, name: "gopClosedCadence", parent: name, max: 2147483647)
            try self.validate(self.gopClosedCadence, name: "gopClosedCadence", parent: name, min: 0)
            try self.validate(self.hrdBufferSize, name: "hrdBufferSize", parent: name, max: 1152000000)
            try self.validate(self.hrdBufferSize, name: "hrdBufferSize", parent: name, min: 0)
            try self.validate(self.slices, name: "slices", parent: name, max: 12)
            try self.validate(self.slices, name: "slices", parent: name, min: 8)
        }

        private enum CodingKeys: String, CodingKey {
            case bitrateClass = "bitrateClass"
            case codecProfile = "codecProfile"
            case flickerAdaptiveQuantization = "flickerAdaptiveQuantization"
            case gopBReference = "gopBReference"
            case gopClosedCadence = "gopClosedCadence"
            case hrdBufferSize = "hrdBufferSize"
            case qualityTuningLevel = "qualityTuningLevel"
            case slices = "slices"
        }
    }

    public struct XavcHdIntraCbgProfileSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify the XAVC Intra HD (CBG) Class to set the bitrate of your output. Outputs of the same class have similar image quality over the operating points that are valid for that class.
        public let xavcClass: XavcHdIntraCbgProfileClass?

        @inlinable
        public init(xavcClass: XavcHdIntraCbgProfileClass? = nil) {
            self.xavcClass = xavcClass
        }

        private enum CodingKeys: String, CodingKey {
            case xavcClass = "xavcClass"
        }
    }

    public struct XavcHdProfileSettings: AWSEncodableShape & AWSDecodableShape {
        /// Specify the XAVC HD (Long GOP) Bitrate Class to set the bitrate of your output. Outputs of the same class have similar image quality over the operating points that are valid for that class.
        public let bitrateClass: XavcHdProfileBitrateClass?
        /// The best way to set up adaptive quantization is to keep the default value, Auto, for the setting Adaptive quantization. When you do so, MediaConvert automatically applies the best types of quantization for your video content. Include this setting in your JSON job specification only when you choose to change the default value for Adaptive quantization. Enable this setting to have the encoder reduce I-frame pop. I-frame pop appears as a visual flicker that can arise when the encoder saves bits by copying some macroblocks many times from frame to frame, and then refreshes them at the I-frame. When you enable this setting, the encoder updates these macroblocks slightly more often to smooth out the flicker. This setting is disabled by default. Related setting: In addition to enabling this setting, you must also set Adaptive quantization to a value other than Off or Auto. Use Adaptive quantization to adjust the degree of smoothing that Flicker adaptive quantization provides.
        public let flickerAdaptiveQuantization: XavcFlickerAdaptiveQuantization?
        /// Specify whether the encoder uses B-frames as reference frames for other pictures in the same GOP. Choose Allow to allow the encoder to use B-frames as reference frames. Choose Don't allow to prevent the encoder from using B-frames as reference frames.
        public let gopBReference: XavcGopBReference?
        /// Frequency of closed GOPs. In streaming applications, it is recommended that this be set to 1 so a decoder joining mid-stream will receive an IDR frame as quickly as possible. Setting this value to 0 will break output segmenting.
        public let gopClosedCadence: Int?
        /// Specify the size of the buffer that MediaConvert uses in the HRD buffer model for this output. Specify this value in bits; for example, enter five megabits as 5000000. When you don't set this value, or you set it to zero, MediaConvert calculates the default by doubling the bitrate of this output point.
        public let hrdBufferSize: Int?
        /// Choose the scan line type for the output. Keep the default value, Progressive to create a progressive output, regardless of the scan type of your input. Use Top field first or Bottom field first to create an output that's interlaced with the same field polarity throughout. Use Follow, default top or Follow, default bottom to produce outputs with the same field polarity as the source. For jobs that have multiple inputs, the output field polarity might change over the course of the output. Follow behavior depends on the input scan type. If the source is interlaced, the output will be interlaced with the same polarity as the source. If the source is progressive, the output will be interlaced with top field bottom field first, depending on which of the Follow options you choose.
        public let interlaceMode: XavcInterlaceMode?
        /// Optional. Use Quality tuning level to choose how you want to trade off encoding speed for output video quality. The default behavior is faster, lower quality, single-pass encoding.
        public let qualityTuningLevel: XavcHdProfileQualityTuningLevel?
        /// Number of slices per picture. Must be less than or equal to the number of macroblock rows for progressive pictures, and less than or equal to half the number of macroblock rows for interlaced pictures.
        public let slices: Int?
        /// Ignore this setting unless you set Frame rate (framerateNumerator divided by framerateDenominator) to 29.970. If your input framerate is 23.976, choose Hard. Otherwise, keep the default value None. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-telecine-and-inverse-telecine.html.
        public let telecine: XavcHdProfileTelecine?

        @inlinable
        public init(bitrateClass: XavcHdProfileBitrateClass? = nil, flickerAdaptiveQuantization: XavcFlickerAdaptiveQuantization? = nil, gopBReference: XavcGopBReference? = nil, gopClosedCadence: Int? = nil, hrdBufferSize: Int? = nil, interlaceMode: XavcInterlaceMode? = nil, qualityTuningLevel: XavcHdProfileQualityTuningLevel? = nil, slices: Int? = nil, telecine: XavcHdProfileTelecine? = nil) {
            self.bitrateClass = bitrateClass
            self.flickerAdaptiveQuantization = flickerAdaptiveQuantization
            self.gopBReference = gopBReference
            self.gopClosedCadence = gopClosedCadence
            self.hrdBufferSize = hrdBufferSize
            self.interlaceMode = interlaceMode
            self.qualityTuningLevel = qualityTuningLevel
            self.slices = slices
            self.telecine = telecine
        }

        public func validate(name: String) throws {
            try self.validate(self.gopClosedCadence, name: "gopClosedCadence", parent: name, max: 2147483647)
            try self.validate(self.gopClosedCadence, name: "gopClosedCadence", parent: name, min: 0)
            try self.validate(self.hrdBufferSize, name: "hrdBufferSize", parent: name, max: 1152000000)
            try self.validate(self.hrdBufferSize, name: "hrdBufferSize", parent: name, min: 0)
            try self.validate(self.slices, name: "slices", parent: name, max: 12)
            try self.validate(self.slices, name: "slices", parent: name, min: 4)
        }

        private enum CodingKeys: String, CodingKey {
            case bitrateClass = "bitrateClass"
            case flickerAdaptiveQuantization = "flickerAdaptiveQuantization"
            case gopBReference = "gopBReference"
            case gopClosedCadence = "gopClosedCadence"
            case hrdBufferSize = "hrdBufferSize"
            case interlaceMode = "interlaceMode"
            case qualityTuningLevel = "qualityTuningLevel"
            case slices = "slices"
            case telecine = "telecine"
        }
    }

    public struct XavcSettings: AWSEncodableShape & AWSDecodableShape {
        /// Keep the default value, Auto, for this setting to have MediaConvert automatically apply the best types of quantization for your video content. When you want to apply your quantization settings manually, you must set Adaptive quantization to a value other than Auto. Use this setting to specify the strength of any adaptive quantization filters that you enable. If you don't want MediaConvert to do any adaptive quantization in this transcode, set Adaptive quantization to Off. Related settings: The value that you choose here applies to the following settings: Flicker adaptive quantization (flickerAdaptiveQuantization), Spatial adaptive quantization, and Temporal adaptive quantization.
        public let adaptiveQuantization: XavcAdaptiveQuantization?
        /// Optional. Choose a specific entropy encoding mode only when you want to override XAVC recommendations. If you choose the value auto, MediaConvert uses the mode that the XAVC file format specifies given this output's operating point.
        public let entropyEncoding: XavcEntropyEncoding?
        /// If you are using the console, use the Frame rate setting to specify the frame rate for this output. If you want to keep the same frame rate as the input video, choose Follow source. If you want to do frame rate conversion, choose a frame rate from the dropdown list. The framerates shown in the dropdown list are decimal approximations of fractions.
        public let framerateControl: XavcFramerateControl?
        /// Choose the method that you want MediaConvert to use when increasing or decreasing your video's frame rate. For numerically simple conversions, such as 60 fps to 30 fps: We recommend that you keep the default value, Drop duplicate. For numerically complex conversions, to avoid stutter: Choose Interpolate. This results in a smooth picture, but might introduce undesirable video artifacts. For complex frame rate conversions, especially if your source video has already been converted from its original cadence: Choose FrameFormer to do motion-compensated interpolation. FrameFormer uses the best conversion method frame by frame. Note that using FrameFormer increases the transcoding time and incurs a significant add-on cost. When you choose FrameFormer, your input video resolution must be at least 128x96. To create an output with the same number of frames as your input: Choose Maintain frame count. When you do, MediaConvert will not drop, interpolate, add, or otherwise change the frame count from your input to your output. Note that since the frame count is maintained, the duration of your output will become shorter at higher frame rates and longer at lower frame rates.
        public let framerateConversionAlgorithm: XavcFramerateConversionAlgorithm?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateDenominator to specify the denominator of this fraction. In this example, use 1001 for the value of FramerateDenominator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Frame rate. In this example, specify 23.976.
        public let framerateDenominator: Int?
        /// When you use the API for transcode jobs that use frame rate conversion, specify the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateNumerator to specify the numerator of this fraction. In this example, use 24000 for the value of FramerateNumerator. When you use the console for transcode jobs that use frame rate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976.
        public let framerateNumerator: Int?
        /// Optionally choose one or more per frame metric reports to generate along with your output. You can use these metrics to analyze your video output according to one or more commonly used image quality metrics. You can specify per frame metrics for output groups or for individual outputs. When you do, MediaConvert writes a CSV (Comma-Separated Values) file to your S3 output destination, named after the output name and metric type. For example: videofile_PSNR.csv Jobs that generate per frame metrics will take longer to complete, depending on the resolution and complexity of your output. For example, some 4K jobs might take up to twice as long to complete. Note that when analyzing the video quality of your output, or when comparing the video quality of multiple different outputs, we generally also recommend a detailed visual review in a controlled environment. You can choose from the following per frame metrics: * PSNR: Peak Signal-to-Noise Ratio * SSIM: Structural Similarity Index Measure * MS_SSIM: Multi-Scale Similarity Index Measure * PSNR_HVS: Peak Signal-to-Noise Ratio, Human Visual System * VMAF: Video Multi-Method Assessment Fusion * QVBR: Quality-Defined Variable Bitrate. This option is only available when your output uses the QVBR rate control mode.
        public let perFrameMetrics: [FrameMetricType]?
        /// Specify the XAVC profile for this output. For more information, see the Sony documentation at https://www.xavc-info.org/. Note that MediaConvert doesn't support the interlaced video XAVC operating points for XAVC_HD_INTRA_CBG. To create an interlaced XAVC output, choose the profile XAVC_HD.
        public let profile: XavcProfile?
        /// Ignore this setting unless your input frame rate is 23.976 or 24 frames per second (fps). Enable slow PAL to create a 25 fps output by relabeling the video frames and resampling your audio. Note that enabling this setting will slightly reduce the duration of your video. Related settings: You must also set Frame rate to 25.
        public let slowPal: XavcSlowPal?
        /// Ignore this setting unless your downstream workflow requires that you specify it explicitly. Otherwise, we recommend that you adjust the softness of your output by using a lower value for the setting Sharpness or by enabling a noise reducer filter. The Softness setting specifies the quantization matrices that the encoder uses. Keep the default value, 0, for flat quantization. Choose the value 1 or 16 to use the default JVT softening quantization matricies from the H.264 specification. Choose a value from 17 to 128 to use planar interpolation. Increasing values from 17 to 128 result in increasing reduction of high-frequency data. The value 128 results in the softest video.
        public let softness: Int?
        /// The best way to set up adaptive quantization is to keep the default value, Auto, for the setting Adaptive quantization. When you do so, MediaConvert automatically applies the best types of quantization for your video content. Include this setting in your JSON job specification only when you choose to change the default value for Adaptive quantization. For this setting, keep the default value, Enabled, to adjust quantization within each frame based on spatial variation of content complexity. When you enable this feature, the encoder uses fewer bits on areas that can sustain more distortion with no noticeable visual degradation and uses more bits on areas where any small distortion will be noticeable. For example, complex textured blocks are encoded with fewer bits and smooth textured blocks are encoded with more bits. Enabling this feature will almost always improve your video quality. Note, though, that this feature doesn't take into account where the viewer's attention is likely to be. If viewers are likely to be focusing their attention on a part of the screen with a lot of complex texture, you might choose to disable this feature. Related setting: When you enable spatial adaptive quantization, set the value for Adaptive quantization depending on your content. For homogeneous content, such as cartoons and video games, set it to Low. For content with a wider variety of textures, set it to High or Higher.
        public let spatialAdaptiveQuantization: XavcSpatialAdaptiveQuantization?
        /// The best way to set up adaptive quantization is to keep the default value, Auto, for the setting Adaptive quantization. When you do so, MediaConvert automatically applies the best types of quantization for your video content. Include this setting in your JSON job specification only when you choose to change the default value for Adaptive quantization. For this setting, keep the default value, Enabled, to adjust quantization within each frame based on temporal variation of content complexity. When you enable this feature, the encoder uses fewer bits on areas of the frame that aren't moving and uses more bits on complex objects with sharp edges that move a lot. For example, this feature improves the readability of text tickers on newscasts and scoreboards on sports matches. Enabling this feature will almost always improve your video quality. Note, though, that this feature doesn't take into account where the viewer's attention is likely to be. If viewers are likely to be focusing their attention on a part of the screen that doesn't have moving objects with sharp edges, such as sports athletes' faces, you might choose to disable this feature. Related setting: When you enable temporal adaptive quantization, adjust the strength of the filter with the setting Adaptive quantization.
        public let temporalAdaptiveQuantization: XavcTemporalAdaptiveQuantization?
        /// Required when you set Profile to the value XAVC_4K_INTRA_CBG.
        public let xavc4kIntraCbgProfileSettings: Xavc4kIntraCbgProfileSettings?
        /// Required when you set Profile to the value XAVC_4K_INTRA_VBR.
        public let xavc4kIntraVbrProfileSettings: Xavc4kIntraVbrProfileSettings?
        /// Required when you set Profile to the value XAVC_4K.
        public let xavc4kProfileSettings: Xavc4kProfileSettings?
        /// Required when you set Profile to the value XAVC_HD_INTRA_CBG.
        public let xavcHdIntraCbgProfileSettings: XavcHdIntraCbgProfileSettings?
        /// Required when you set Profile to the value XAVC_HD.
        public let xavcHdProfileSettings: XavcHdProfileSettings?

        @inlinable
        public init(adaptiveQuantization: XavcAdaptiveQuantization? = nil, entropyEncoding: XavcEntropyEncoding? = nil, framerateControl: XavcFramerateControl? = nil, framerateConversionAlgorithm: XavcFramerateConversionAlgorithm? = nil, framerateDenominator: Int? = nil, framerateNumerator: Int? = nil, perFrameMetrics: [FrameMetricType]? = nil, profile: XavcProfile? = nil, slowPal: XavcSlowPal? = nil, softness: Int? = nil, spatialAdaptiveQuantization: XavcSpatialAdaptiveQuantization? = nil, temporalAdaptiveQuantization: XavcTemporalAdaptiveQuantization? = nil, xavc4kIntraCbgProfileSettings: Xavc4kIntraCbgProfileSettings? = nil, xavc4kIntraVbrProfileSettings: Xavc4kIntraVbrProfileSettings? = nil, xavc4kProfileSettings: Xavc4kProfileSettings? = nil, xavcHdIntraCbgProfileSettings: XavcHdIntraCbgProfileSettings? = nil, xavcHdProfileSettings: XavcHdProfileSettings? = nil) {
            self.adaptiveQuantization = adaptiveQuantization
            self.entropyEncoding = entropyEncoding
            self.framerateControl = framerateControl
            self.framerateConversionAlgorithm = framerateConversionAlgorithm
            self.framerateDenominator = framerateDenominator
            self.framerateNumerator = framerateNumerator
            self.perFrameMetrics = perFrameMetrics
            self.profile = profile
            self.slowPal = slowPal
            self.softness = softness
            self.spatialAdaptiveQuantization = spatialAdaptiveQuantization
            self.temporalAdaptiveQuantization = temporalAdaptiveQuantization
            self.xavc4kIntraCbgProfileSettings = xavc4kIntraCbgProfileSettings
            self.xavc4kIntraVbrProfileSettings = xavc4kIntraVbrProfileSettings
            self.xavc4kProfileSettings = xavc4kProfileSettings
            self.xavcHdIntraCbgProfileSettings = xavcHdIntraCbgProfileSettings
            self.xavcHdProfileSettings = xavcHdProfileSettings
        }

        public func validate(name: String) throws {
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, max: 1001)
            try self.validate(self.framerateDenominator, name: "framerateDenominator", parent: name, min: 1)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, max: 60000)
            try self.validate(self.framerateNumerator, name: "framerateNumerator", parent: name, min: 24)
            try self.validate(self.softness, name: "softness", parent: name, max: 128)
            try self.validate(self.softness, name: "softness", parent: name, min: 0)
            try self.xavc4kProfileSettings?.validate(name: "\(name).xavc4kProfileSettings")
            try self.xavcHdProfileSettings?.validate(name: "\(name).xavcHdProfileSettings")
        }

        private enum CodingKeys: String, CodingKey {
            case adaptiveQuantization = "adaptiveQuantization"
            case entropyEncoding = "entropyEncoding"
            case framerateControl = "framerateControl"
            case framerateConversionAlgorithm = "framerateConversionAlgorithm"
            case framerateDenominator = "framerateDenominator"
            case framerateNumerator = "framerateNumerator"
            case perFrameMetrics = "perFrameMetrics"
            case profile = "profile"
            case slowPal = "slowPal"
            case softness = "softness"
            case spatialAdaptiveQuantization = "spatialAdaptiveQuantization"
            case temporalAdaptiveQuantization = "temporalAdaptiveQuantization"
            case xavc4kIntraCbgProfileSettings = "xavc4kIntraCbgProfileSettings"
            case xavc4kIntraVbrProfileSettings = "xavc4kIntraVbrProfileSettings"
            case xavc4kProfileSettings = "xavc4kProfileSettings"
            case xavcHdIntraCbgProfileSettings = "xavcHdIntraCbgProfileSettings"
            case xavcHdProfileSettings = "xavcHdProfileSettings"
        }
    }
}

// MARK: - Errors

/// Error enum for MediaConvert
public struct MediaConvertErrorType: AWSErrorType {
    enum Code: String {
        case badRequestException = "BadRequestException"
        case conflictException = "ConflictException"
        case forbiddenException = "ForbiddenException"
        case internalServerErrorException = "InternalServerErrorException"
        case notFoundException = "NotFoundException"
        case tooManyRequestsException = "TooManyRequestsException"
    }

    private let error: Code
    public let context: AWSErrorContext?

    /// initialize MediaConvert
    public init?(errorCode: String, context: AWSErrorContext) {
        guard let error = Code(rawValue: errorCode) else { return nil }
        self.error = error
        self.context = context
    }

    internal init(_ error: Code) {
        self.error = error
        self.context = nil
    }

    /// return error code string
    public var errorCode: String { self.error.rawValue }

    /// The service can't process your request because of a problem in the request. Please check your request form and syntax.
    public static var badRequestException: Self { .init(.badRequestException) }
    /// The service couldn't complete your request because there is a conflict with the current state of the resource.
    public static var conflictException: Self { .init(.conflictException) }
    /// You don't have permissions for this action with the credentials you sent.
    public static var forbiddenException: Self { .init(.forbiddenException) }
    /// The service encountered an unexpected condition and can't fulfill your request.
    public static var internalServerErrorException: Self { .init(.internalServerErrorException) }
    /// The resource you requested doesn't exist.
    public static var notFoundException: Self { .init(.notFoundException) }
    /// Too many requests have been sent in too short of a time. The service limits the rate at which it will accept requests.
    public static var tooManyRequestsException: Self { .init(.tooManyRequestsException) }
}

extension MediaConvertErrorType: Equatable {
    public static func == (lhs: MediaConvertErrorType, rhs: MediaConvertErrorType) -> Bool {
        lhs.error == rhs.error
    }
}

extension MediaConvertErrorType: CustomStringConvertible {
    public var description: String {
        return "\(self.error.rawValue): \(self.message ?? "")"
    }
}
